ejabberd - Comments for "Logfile Rollover" https://www.ejabberd.im/node/485 en Thanks, I'll give that a https://www.ejabberd.im/node/485#comment-1911 <p>Thanks, I'll give that a try. I think I put that there when testing from the erl shell outside of ejabberd and needed that to make it work.</p> Sat, 24 Jun 2006 12:53:18 +0000 zengargoyle comment 1911 at https://www.ejabberd.im Simply don't start crypto https://www.ejabberd.im/node/485#comment-1907 <p>Simply don't start crypto server every time. And since it is launched by ejabberd itself you don't have to start it at all.</p> Fri, 23 Jun 2006 19:39:45 +0000 teo comment 1907 at https://www.ejabberd.im Bummer, I'm using a custom https://www.ejabberd.im/node/485#comment-1905 <p>Bummer, I'm using a custom authentication module that needs to use MD5. It seems that I get tons of crypto_server start and stop messages.</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>=PROGRESS REPORT==== 23-Jun-2006::10:28:29 ===<br /> application: crypto<br /> started_at: 'ejabberd@chat.myserver.com'</p> <p>=PROGRESS REPORT==== 23-Jun-2006::10:35:21 ===<br /> supervisor: {local,crypto_sup}<br /> started: [{pid,&lt;0.29463.1&gt;},<br /> {name,crypto_server},<br /> {mfa,{crypto_server,start_link,[]}},<br /> {restart_type,permanent},<br /> {shutdown,2000},<br /> {child_type,worker}]</p> <p>=PROGRESS REPORT==== 23-Jun-2006::10:35:21 ===<br /> application: crypto<br /> started_at: 'ejabberd@chat.myserver.com' </p></div> <p>I think that comes from this:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>get_query(User, Password) -&gt;<br /> crypto:start(),<br /> Pass = crypto:md5(Password),<br /> crypto:stop(),<br /> Pas = as_hex(binary_to_list(Pass)),<br /> L = lists:concat([User,"@",Pas]),<br /> Q = as_hex(L),<br /> Q. </p></div> <p>So, am I doing anything horribly wrong here? (total Erlang newbie). Or is there anyway to stop crypto_server from logging? I'm getting about 1MB per week in sasl.log.</p> Fri, 23 Jun 2006 15:52:19 +0000 zengargoyle comment 1905 at https://www.ejabberd.im There's no command which https://www.ejabberd.im/node/485#comment-1901 <p>There's no command which reopens sasl.log. But it shouldn't grow fast. Ideally it shouln't grow at all. And it would be a good idea to report error (crash) messages from it. Usually they indicate bugs (may be noncritical).</p> Thu, 22 Jun 2006 15:04:16 +0000 teo comment 1901 at https://www.ejabberd.im Logfile Rollover for sasl.log https://www.ejabberd.im/node/485#comment-1898 <p>I've tried the 'ejabberdctl reopen-log' command and it works for the main ejabberd.log file. Is there another command to rotate the sasl.log file? I can't get that one to rotate correctly, ejabberd continues to log to the old file.</p> Thu, 22 Jun 2006 11:23:55 +0000 zengargoyle comment 1898 at https://www.ejabberd.im ejabberd has a command to https://www.ejabberd.im/node/485#comment-1004 <p>ejabberd has a command to reopen the log:</p> <pre>ejabberdctl node reopen-log</pre><p> You just need a tool like lograte that:</p> <ol> <li>Checks for example from time to time the size of the logs.</li> <li>When it is bigger than a configured size, it will:</li> <li>archive the logs to something like ejabberd-log-20051104.tar.gz,</li> <li>delete the current log file,</li> <li>create a new, empty file,</li> <li>run the above ejabberdctl command.</li> </ol> <p>--<br /> sander</p> Fri, 04 Nov 2005 09:33:13 +0000 sander comment 1004 at https://www.ejabberd.im