You can check whether logrotate sees/understands the asterisk's file in 
/etc/logrotate.d volume by looking through 
 /var/log/logstatus 

You should see names of the files you plan to rotate
Actually you should do 
logrotate -s /var/log/logstatus /etc/logrotate.conf to see these files

hope this helps
Dmitry Pavlenko  


________________________________
 From: Tzafrir Cohen <tzafrir.co...@xorcom.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com> 
Sent: Thursday, May 23, 2013 11:25 AM
Subject: Re: [asterisk-users] Asterisk Log rotate not working
 

On Wed, May 22, 2013 at 02:54:46PM -0400, Ahmed Munir wrote:
> Jim,
> 
> Cron and Logrotate already installed in my machine and already configured
> as the steps you enlisted. But still logrotate is not running.

How can you tell that the logrotate cron job was run?

At what time it was configured to run? Did you see its output in the
logs?

And please, do make some minimal effort to RTFM and answer questions on
your own. Some tools for your disposal:

  rpm -ql logrotate | grep cron
  grep -i crom /var/log/messages

Cron jobs which have failed and/or had an output send a message to the
user who ran them (root, in your case). Is there a "sendmail" (sendmail,
postfix, whatever) running on the system? If so, where does root's mail
go to? Read it.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.co...@xorcom.com
+972-50-7952406           mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to