LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Question about logrotate (https://www.linuxquestions.org/questions/linux-server-73/question-about-logrotate-711917/)

h725 03-16-2009 05:28 AM

Question about logrotate
 
Hi,

who is rotating /var/log/syslog on my system (Debian Etch)?

In /etc/logrotate.conf and /etc/logrotate.d/* there is no mention about this file, but it's rotate every day.

Thank you.

aus9 03-16-2009 07:27 AM

see if you have a config called
/etc/logrotate.d/rsyslog

this has my /var/log/syslog.../var/log/messages

h725 03-16-2009 10:30 AM

Quote:

Originally Posted by aus9 (Post 3476951)
see if you have a config called
/etc/logrotate.d/rsyslog

this has my /var/log/syslog.../var/log/messages

Negative..

aus9 03-16-2009 05:22 PM

hi

ok it might be better to do this

Code:

su
cd /etc/
find -name *syslog


archangel_617b 03-16-2009 05:49 PM

Quote:

Originally Posted by h725 (Post 3476862)
Hi,

who is rotating /var/log/syslog on my system (Debian Etch)?

In /etc/logrotate.conf and /etc/logrotate.d/* there is no mention about this file, but it's rotate every day.

Thank you.

From here:

http://help.lockergnome.com/linux/lo...ict461357.html

"Probably it is a misapprehension that you think that rotation of the
syslog is carried out by logrotate command.

Rotation of the syslog is carried out by the savelog command in the two
shell scripts "/etc/cron.daily/sysklogd" and "/etc/cron.weekly/sysklogd"."


I just checked my server and sure enough, cron.daily/sysklogd and cron.weekly/sysklogd use the "savelog" command to do log rotation. Also in the Google search results, I found a bug for Debian on this issue saying that logrotate should be used instead of savelog. So it seems you can just blow away those two cronjobs and setup a logrotate job to handle the rotation instead should you so desire one.

- Arch

h725 03-17-2009 03:01 AM

Quote:

Originally Posted by archangel_617b (Post 3477605)
...

Rotation of the syslog is carried out by the savelog command in the two
shell scripts "/etc/cron.daily/sysklogd" and "/etc/cron.weekly/sysklogd"."
- Arch


Thankyou! Very interesting.


All times are GMT -5. The time now is 06:16 PM.