Solved

logrotate is not working please help

Posted on 2013-05-28
4
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39200703
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
ID: 39200794
/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
ID: 39200823
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
ID: 39204263
It works some typo errors
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 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