LinuxQuestions.org
Visit Jeremy's Blog.
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 12-10-2009, 03:34 PM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
log files not being rotated


I have syslog daemon running and also /etc/logrotate.conf says as below:
Quote:

# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
Also
ps -ef |grep log

Quote:
root 21839 1 0 15:26 ? 00:00:00 syslogd -m 0
root 21843 1 0 15:26 ? 00:00:00 klogd -x
root 21895 15498 0 15:33 pts/0 00:00:00 grep log

Still the system is not rotating log files...what could have gone wrong ?
 
Old 12-10-2009, 03:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no idea, that's just the bog standard master config file out of the box so we've nothing to go on at all. check your logs in /var/log/messages and try "logrotate -vf /etc/logrotate.conf" to show verbose forced rotation of the process.
 
Old 12-11-2009, 09:11 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Is your cron daemon running? The cron daemon runs logrotate on a daily basis (/etc/cron.daily/logrotate), so make sure your cron daemon is running. If yes, then try acid_kewpie's suggestion.
 
  


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
Logs are not rotated BroX Slackware 11 06-03-2009 06:49 PM
archiving rotated log files tjainsworth Linux - Security 4 07-12-2006 01:00 PM
logrotate error - last rotated in the future ocgltd Fedora 1 10-02-2005 08:07 PM
Rotated monitor(s) with Xorg 6.8.1 dnar Linux - Hardware 0 01-09-2005 07:39 AM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM

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

All times are GMT -5. The time now is 12:25 PM.

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