troubleshooting Question

logrotate not compressing logs

Avatar of Steven Vona
Steven VonaFlag for United States of America asked on
LinuxUnix OS
18 Comments3 Solutions4581 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
}

Open in new window

ASKER CERTIFIED SOLUTION
skullnobrains

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 18 Comments.
Start Free Trial
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 3 Answers 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