LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2006, 12:49 PM   #1
jwholey
LQ Newbie
 
Registered: Mar 2006
Posts: 19

Rep: Reputation: 0
logrotate question/problem


I rotate my logs daily, but am having a problem with my maillog growing too large. It does not seem to be adhering to the parameters set in /etc/logrotate.conf. Here is what I have in /etc/logrotate.conf. I expect to keep 4 versions of any log and don't expect the log to grow greater than 100M at any time. Below is my /etc/logrotate.conf. Shouldn't "size 100M" do what I expect. i.e. rotate the logs when it hits 100M. /var/log/maillog is defined in /etc/logrotate.d/syslog. What am I missing?

# see "man logrotate" for details
# rotate log files weekly
#weekly

# commented out weekly and changed to size due to e-mail errors
size 100M

# 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
}
 
Old 06-28-2006, 12:18 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
The size parameter looks right to me. Is it maybe being overridden by something in /etc/logrotate.d/syslog? BTW, if your maillog is the only log giving you size problems, you could leave the global "weekly" parameter in place and put the size restriction locally in the maillog definition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate question sunman Slackware 3 02-21-2006 02:40 PM
Quick logrotate question Jukas Debian 0 11-10-2005 07:04 PM
a question about logrotate? hueofwind Linux - Newbie 3 11-08-2005 09:08 PM
logrotate question glock19 Linux - Networking 1 05-12-2003 10:08 PM
A question on logrotate marcoc Linux - Networking 2 02-21-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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