troubleshooting Question

logrotate not compressing logs

Avatar of Steven Vona
Steven VonaFlag for United States of America asked on
Unix OSLinux
18 Comments1 Solution4581 ViewsLast Modified:
Running Red Hat 6:


I have a log server collecting logs for our cisco devices.  I would like to rotate and compress the logs daily.  The rotate seems to be working fine, but for some reason logrotate is not compressing the logs.  debug mode is no help because all it says is "Log does not need rotating".

Here is my /etc/logrotate.d/ciscologs file.

/var/log/cisco/*/*.log
{
     daily
     rotate 5000
     missingok
     compress
     sharedscripts
#    postrotate
#    endscript
}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros