LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2009, 05:28 AM   #1
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
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.
 
Old 03-16-2009, 07:27 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
see if you have a config called
/etc/logrotate.d/rsyslog

this has my /var/log/syslog.../var/log/messages
 
Old 03-16-2009, 10:30 AM   #3
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
see if you have a config called
/etc/logrotate.d/rsyslog

this has my /var/log/syslog.../var/log/messages
Negative..
 
Old 03-16-2009, 05:22 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

ok it might be better to do this

Code:
su
cd /etc/
find -name *syslog
 
Old 03-16-2009, 05:49 PM   #5
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
Quote:
Originally Posted by h725 View Post
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
 
Old 03-17-2009, 03:01 AM   #6
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by archangel_617b View Post
...

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate question rimvydazas Linux - Software 9 12-21-2007 10:39 AM
logrotate question sunman Slackware 3 02-21-2006 01:40 PM
a question about logrotate? hueofwind Linux - Newbie 3 11-08-2005 08:08 PM
logrotate question glock19 Linux - Networking 1 05-12-2003 09:08 PM
A question on logrotate marcoc Linux - Networking 2 02-21-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration