ejabberd - Comments for "mod_log_chat - log chat messages in text files" https://www.ejabberd.im/mod_log_chat en mod_log_chat - log chat https://www.ejabberd.im/mod_log_chat#comment-65182 <p>I have compiled mod_log_chat.erl copied it to the target directory with *.beam for ejabberd. Added to ejabberd.yml</p> <div class="codeblock"><code>&nbsp; mod_log_chat:<br />&nbsp;&nbsp;&nbsp; path: &quot;/var/log/ejabberd/chat&quot;<br />&nbsp;&nbsp;&nbsp; format: html</code></div> <p>but still have next problem^</p> <div class="codeblock"><code>2014-12-19 14:19:24.664 [critical] &lt;0.37.0&gt;@gen_mod:start_module:90 Problem starting the module mod_log_chat for host &lt;&lt;&quot;192.168.7.101&quot;&gt;&gt;<br /> options: [{path,&lt;&lt;&quot;/var/log/ejabberd/chat&quot;&gt;&gt;},{format,html}]<br /> error: undef<br />[{ejabberd_logger,debug_msg,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [mod_log_chat,31,&quot; ~p&nbsp; ~p~n&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;&lt;&quot;192.168.7.101&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{path,&lt;&lt;&quot;/var/log/ejabberd/chat&quot;&gt;&gt;},{format,html}]]],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []},<br /> {mod_log_chat,start,2,[{file,&quot;src/mod_log_chat.erl&quot;},{line,31}]},<br /> {gen_mod,start_module,3,[{file,&quot;src/gen_mod.erl&quot;},{line,82}]},<br /> {lists,foreach,2,[{file,&quot;lists.erl&quot;},{line,1336}]},<br /> {ejabberd_app,start,2,[{file,&quot;src/ejabberd_app.erl&quot;},{line,67}]},<br /> {application_master,start_it_old,4,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;application_master.erl&quot;},{line,272}]}]<br />2014-12-19 14:19:24.664 [critical] &lt;0.37.0&gt;@gen_mod:start_module:95 ejabberd initialization was aborted because a module start failed.</code></div> Fri, 19 Dec 2014 13:30:57 +0000 ad1 comment 65182 at https://www.ejabberd.im Hi Is possible to exclude https://www.ejabberd.im/mod_log_chat#comment-59710 <p>Hi</p> <p>Is possible to exclude jids using mod_log_chat.</p> <p>Could you please confirm.</p> <p>Your help is highly appreciated</p> <p>Thanks</p> <p>Krishna</p> Tue, 23 Apr 2013 07:27:06 +0000 Krishna_vernalis comment 59710 at https://www.ejabberd.im Log Chat history - Specific Users https://www.ejabberd.im/mod_log_chat#comment-59703 <p>Hi,</p> <p>I am have ejabberd with version 2.1.9.</p> <p>I want to store all Users chat history except some one.</p> <p>Is possible to implement this..</p> <p>Please confirm</p> <p>Your help is highly appreciated.</p> <p>Thanks<br /> GK</p> Wed, 17 Apr 2013 16:30:06 +0000 Krishna_vernalis comment 59703 at https://www.ejabberd.im nvm https://www.ejabberd.im/mod_log_chat#comment-57217 <p>Changed my mind, I'm gonna implement my own using a database back end instead of text files.</p> Fri, 08 Apr 2011 04:14:41 +0000 mives comment 57217 at https://www.ejabberd.im performance https://www.ejabberd.im/mod_log_chat#comment-57211 <p>Hi there! Just want to ask how this module performs? Say, &gt;50,000 users chatting? How disk heavy would this be at that scale? </p> <p>Also, is there a config to set an expiry date for the files? Thanks.</p> Wed, 06 Apr 2011 07:08:50 +0000 mives comment 57211 at https://www.ejabberd.im chat log https://www.ejabberd.im/mod_log_chat#comment-51625 <p>plz if anyone can tell me the process/configration how to log the users chat in internal database.if internal database is not supported then tell me the other way.</p> <p>plz tell me where i have to edit</p> Tue, 15 Jan 2008 10:22:43 +0000 usmaan comment 51625 at https://www.ejabberd.im Remove ?DEBUG lines https://www.ejabberd.im/mod_log_chat#comment-51444 <p>The problem seems that the module is prepared for ejabberd 2.0.0. Fortunately, you can use it in your 1.1.4: delete all the lines that say ?DEBUG(...)</p> Sun, 09 Dec 2007 09:05:35 +0000 mfoss comment 51444 at https://www.ejabberd.im If you meaned "The problem https://www.ejabberd.im/mod_log_chat#comment-51443 <p>If you meaned "The problem seems that Erlang couldn't find the file mod_log_chat.beam"? I checked -pa again and again as I write above (sorry for bad English, it's not my native language), but it's not solutions of the problem.I copied some other .beams into that directory and modules works! But log_chat crashed.</p> Sun, 09 Dec 2007 06:37:01 +0000 olegon comment 51443 at https://www.ejabberd.im The answer is in this very https://www.ejabberd.im/mod_log_chat#comment-51440 <p>The answer is in this very same page. Please look at the other people that asked here about this module.</p> Sat, 08 Dec 2007 22:06:15 +0000 mfoss comment 51440 at https://www.ejabberd.im problem with installation https://www.ejabberd.im/mod_log_chat#comment-51429 <p>Running on Gentoo Linux<br /> EJabber 1.1.4<br /> Again and again module crashed with</p> <p>=ERROR REPORT==== 2007-12-06 17:06:48 ===<br /> E(&lt;0.38.0&gt;:gen_mod:47): {undef,<br /> [{ejabberd_logger,<br /> debug_msg,<br /> [mod_log_chat,<br /> 31,<br /> “ ~p ~p~n”,<br /> ["taber.ru",<br /> [{path,"/var/log/jabber/chat"},<br /> {format,html}]]]},<br /> {mod_log_chat,start,2},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> <p>Please, any ideas? Very need for this module at this installation… </p> <p>-pa /usr/lib/erlang/lib/ejabberd-1.1.4/ebin<br /> I moved mod_log_chat.beam here /usr/lib/erlang/lib/ejabberd-1.1.4/ebin, all other modules work, but this...<br /> I compile it with erlang 11.2.5</p> Thu, 06 Dec 2007 15:03:08 +0000 olegon comment 51429 at https://www.ejabberd.im prob https://www.ejabberd.im/mod_log_chat#comment-51231 <div class="quote-msg"> <div class="quote-author"><em>Detergent</em> wrote:</div> <p>=ERROR REPORT==== 2007-11-14 12:15:08 ===<br /> E(&lt;0.644.0&gt;:gen_mod:47): {undef,[{ejabberd_logger,<br /> debug_msg,<br /> [mod_log_chat,<br /> 31,<br /> " ~p ~p~n",<br /> ["my.hostname.hidden",<br /> [{path,"/var/log/ejabberd/chat"},<br /> {format,html}]]]},<br /> {mod_log_chat,start,2},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> <p>I get this message in FreeBSD 6.2<br /> Compiled without any errors. I use ejabberd from ports. </p></div> <p>Removing ?DEBUG lines solves the problem but is not a solution ;/</p> Wed, 14 Nov 2007 14:34:46 +0000 Detergent comment 51231 at https://www.ejabberd.im undef,[{ejabberd_logger https://www.ejabberd.im/mod_log_chat#comment-51228 <p>=ERROR REPORT==== 2007-11-14 12:15:08 ===<br /> E(&lt;0.644.0&gt;:gen_mod:47): {undef,[{ejabberd_logger,<br /> debug_msg,<br /> [mod_log_chat,<br /> 31,<br /> " ~p ~p~n",<br /> ["my.hostname.hidden",<br /> [{path,"/var/log/ejabberd/chat"},<br /> {format,html}]]]},<br /> {mod_log_chat,start,2},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> <p>I get this message in FreeBSD 6.2<br /> Compiled without any errors. I use ejabberd from ports.</p> Wed, 14 Nov 2007 11:20:24 +0000 Detergent comment 51228 at https://www.ejabberd.im Copied to wrong directory, check -pa https://www.ejabberd.im/mod_log_chat#comment-51206 <div class="quote-msg"> <div class="quote-author"><em>timos</em> wrote:</div> <p>I put the beam file to /var/lib/ejabberd/ebin/ since there werent any other beam files on my system. (README.txt just says: Put the beam file where your other beam files are - wtf? Can't it tell me how to determine/set the correct path...).</p></div> <p>The correct path is different depending on how you installed ejabberd: source code package, binary installer, CEAN, or a specific Operating System package.</p> <p>When compiled from the source code package, 'make install' copies ejabberd beam files to the path you mentioned. But a brief tutorial can't contain all the possibilities, hence it relies in the administrator knowledge of where the files where installed in his system.</p> <p>Maybe this helps: when starting ejabberd, the parameters -pa or -pz are used to indicate that directory, for example:</p> <pre>erl -s ejabberd -pa /var/lib/ejabberd/ebin ...</pre><div class="quote-msg"> <div class="quote-author"><em>timos</em> wrote:</div> <p> When I change ejabberd.conf accourding to the example configuration and restart ejabberd, I get the following error in the log file:</p> <div class="codeblock"><code>=ERROR REPORT==== 2007-11-10 18:37:34 ===<br />E(&lt;0.1123.0&gt;:gen_mod:47): {undef,[{mod_log_chat,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;jabber.perlplexity.org&quot;,[]]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {gen_mod,start_module,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {lists,foreach,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_app,start,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {application_master,start_it_old,4}]</code></div> <p>That is not very helpfull for me, I can't even figure out what went wrong... If anyone could help me I would be pleased.</p></div> <p>The problem seems that Erlang couldn't find the file mod_log_chat.beam . So you must follow the instructions: find where are all the other ejabberd beam files, and copy this file there.</p> Sun, 11 Nov 2007 10:44:05 +0000 mfoss comment 51206 at https://www.ejabberd.im Error after installing mod_log_chat https://www.ejabberd.im/mod_log_chat#comment-51203 <p>I tried to install this module. Compiling went well, I put the beam file to /var/lib/ejabberd/ebin/ since there werent any other beam files on my system. (README.txt just says: Put the beam file where your other beam files are - wtf? Can't it tell me how to determine/set the correct path...). When I change ejabberd.conf accourding to the example configuration and restart ejabberd, I get the following error in the log file:</p> <div class="codeblock"><code>=ERROR REPORT==== 2007-11-10 18:37:34 ===<br />E(&lt;0.1123.0&gt;:gen_mod:47): {undef,[{mod_log_chat,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;jabber.perlplexity.org&quot;,[]]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {gen_mod,start_module,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {lists,foreach,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_app,start,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {application_master,start_it_old,4}]</code></div> <p>That is not very helpfull for me, I can't even figure out what went wrong... If anyone could help me I would be pleased.</p> <p>Thank you,<br /> Timo</p> Sat, 10 Nov 2007 18:36:02 +0000 timos comment 51203 at https://www.ejabberd.im Yes, having a version of the https://www.ejabberd.im/mod_log_chat#comment-3390 <p>Yes, having a version of the mod_archive that supports relational database makes sense for large servers.<br /> No promise on when it will be available, though.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Fri, 23 Mar 2007 09:16:18 +0000 mremond comment 3390 at https://www.ejabberd.im