LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2004, 12:23 AM   #1
MaverickApollo
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 57

Rep: Reputation: 15
Logrotate Help!


I have logrotate set up on my system, but the log files are not being rotated, and I am calling it from cron, and getting the email telling me that it has run, just it always says "Log does not need rotating" However some of the logs are 20+Mb in size, and over the date for rotation I have, which is weekly. Do I have to restart services after logrotate has run? I dont really understand what it needs in the config file, but here is what the file currently looks like

Code:
# rotate log files weekly
weekly
#daily

# 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

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

notifempty
nomail
noolddir

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 12
}

# system-specific logs may be also be configured here.

/var/log/clam-update.log {
	monthly
	create 
	rotate 12
}

/var/log/emerge.log {
	monthly
	create
	rotate 12
}

/var/log/ntp.log {
	monthly
	create
	rotate 12
}

/var/log/net-snmpd.log {
	monthly
	create
	rotate 12
}

/var/log/xferlog {
	monthly
	create
	rotate 12
}

/var/log/apache2/* {
	monthly
	create
	rotate 12
}

/var/log/mysql/* {
	monthly
	create
	rotate 12
}

/var/log/samba/* {
	monthly
	create
	rotate 12
}

/var/log/log.nmbd {
	monthly
	create
	rotate 12
}

/var/log/log.smbd {
	monthly
	create
	rotate 12
}
Any Help appreciated!!!!!
 
Old 02-19-2004, 05:02 AM   #2
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
it happened to me too.
then i ran logrotate with the --force option from a terminal and everything got back to normal.
 
Old 02-19-2004, 12:00 PM   #3
MaverickApollo
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
Do I need to stop and restart services after running their log files thru logrotate? Thats the bit I dont really understand
 
Old 02-19-2004, 12:09 PM   #4
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
No you don't (well, i never did and it works just fine).
 
  


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 description pharmhand02 Linux - Software 5 08-02-2004 09:18 AM
Logrotate negation brentos Linux - Software 1 04-21-2004 12:39 PM
logrotate dominant Linux - Newbie 1 02-13-2004 09:28 AM
logrotate Rig24 Linux - Newbie 2 07-11-2003 05:08 AM
logrotate MrJoshua Linux - General 2 09-25-2002 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 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