<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>asterisk does daily log rotate all along ? i didn't know that it is
posiible<br>
i create file in /etc/logrotate.d/asterisk (copy of postgrsql and
renamed it)<br>
/var/log/asterisk/full {<br>
daily<br>
rotate 10<br>
copytruncate<br>
delaycompress<br>
compress<br>
notifempty<br>
create 640 root root<br>
}<br>
i have 10 last full log, 8 oldest gziped<br>
</tt>
<blockquote cite="mid44C9E518.8080000@3ait.co.uk" type="cite">
<blockquote type="cite">
<pre wrap=""><tt>on one cosnole a do asterisk -r
on other i do asterisk -rx "logger rotate"
and the result is
-- Remote UNIX connection
Asterisk Event Logger restarted
Asterisk Queue Logger restarted
-- Remote UNIX connection disconnected
how often new log files are created ? = how many log files are created
in 1 second ?
</tt></pre>
</blockquote>
<pre wrap=""><!----><tt>
Very often, it slows down as the number of log files in the
/var/log/asterisk directory increases.
</tt></pre>
<blockquote type="cite">
<pre wrap=""><tt>there is some kind of regularity or it is done randomly (10logs/1s and
another time 20logs/1s) ?
</tt></pre>
</blockquote>
<pre wrap=""><!----><tt>
Seems to happen more often than not (the past three days) overnight.
We're assuming that it starts when asterisk does it's daily log rotate
itself and then gets itself into a spin...
</tt></pre>
</blockquote>
<tt><br>
<br>
</tt>
</body>
</html>