Solved

logrotate is not working please help

Posted on 2013-05-28
4
412 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

Technology Partners: 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

Suggested Solutions

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…
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 …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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