Re: [users@httpd] logrotate doesn't create *log.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

thomas Armstrong wrote:
> Hi
> 
> Working with Apache 2.0.52 on Linux, I created this logrotate
> configuration file:
> -------
> /usr/local/httpd/logs/*log {
>    missingok
>    notifempty
>    sharedscripts
>    postrotate
>        /bin/kill -USR1 `cat /usr/local/httpd/logs/httpd.pid
> 2>/dev/null` 2> /dev/null || true
>    endscript
> }
> ------------------
> 
> I executed '/usr/sbin/logrotate -v /etc/logrotate.d/httpd' and I get
> this kind of messages:
> -------
> renaming /usr/local/httpd/logs/access_log to
> /usr/local/httpd/logs/access_log.1
> disposeName will be /usr/local/httpd/logs/access_log.1
> removing old log /usr/local/httpd/logs/access_log.1
  ^^^^^^^^

> rotating log /usr/local/httpd/logs/blog_eitb-access_log,
> log->rotateCount is 0
       ^^^^^^^^^^^^^^^^

> However, '/usr/local/httpd/logs/access_log.1' doesn't exist, and
> '/usr/local/httpd/logs/access_log' is empty!

Never having had a problem with this I'm only guessing but it looks like
you have logrotate set to 'rotate 0'.  i.e. don't keep any logs!  It
appears to be rotating and then removing the old log.

Check you logrotate config for how frequently it performs the rotation
and how many old versions it keeps.

HTH,


				Neil.

-- 
Neil Hillard                    neil.hillard@xxxxxxxxxxxxxxxxxx
Westland Helicopters Ltd.       http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux