Solved

logrotate is not working please help

Posted on 2013-05-28
4
374 Views
Last Modified: 2013-05-29
Hi All,

I am facing issues with logrotate which is not working after some troubleshooting i am able to run the logrotate but some are working and many are not please help what could be the issue...
 

we tried to run llogrotate forecly logrotate -d -f /etc/logrotate.conf , however no rotation happened
0
Comment
Question by:apunkabollywood
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Please post /etc/logrotate.conf as well as the included files from /etc/logrotate.d (if any).

Has anything changed? Configuration? OS upgrade? logrotate upgrade?
Target dir(s) for rotated files full/defect (if any)?

What exactly were the "issues" you mentioned anyway?
0
 

Author Comment

by:apunkabollywood
Comment Utility
/var is getting to be full
logrotate seems to be not working correctly

cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create



include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
minsize 1M
create 0664 root utmp
rotate 1
}
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
What do you mean with "/var is getting to be full"?

Is it full/nearly full/a bit full?

You're rotating the wtmp file as soon as it would reach a size of 1 M, but not more frequéntly than once a month. So it might be that wtmp becomes too big during that month to fit into /var.

I can't see any further reason why logrotate should fail.

Did you post the complete logrotate configuration or just a sample?

Try running logrotate with the "-v" flag to get more verbose output.

Or try the "-d" flag for debugging. Use of this flag will inhibit the actual rotation.
0
 

Author Closing Comment

by:apunkabollywood
Comment Utility
It works some typo errors
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now