1
vote
1answer
68 views

logrotate unable to rotate logs

logrotate is unable to rotate my logs. I have checked the file permissions, they are fine. I have even tried by putting "su root root" in the configuration file, still I am facing the same issue. ...
1
vote
1answer
41 views

Logrotate behaving unexpectedly

Find below the logrotate configuration that I'm using /usr/local/nagios/var/nagios.log { copytruncate daily rotate 7 compress missingok size 100M } And I could notice that ...
0
votes
2answers
54 views

logrotate log file with enging date issue

We have following log files, log file with ending with date catalina.out.2014-02-01 catalina.out.2014-02-02 catalina.out.2014-02-03 catalina.out.2014-02-04 catalina.out.2014-02-05 ...
0
votes
2answers
504 views

Use logrotate to store 7 daily, 4 weekly and 12 yearly db backups

I've been trying to use logrotate to store a database backup for: last 7 days (daily) last 4 weeks (weekly) last 12 months (monthly) I've done a logrotate script like this, but only the daily ...
1
vote
3answers
583 views

How to make log-rotate change take effect

I followed this link to change log-rotate configuration. https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-logfiles-locating.html After I made the ...
0
votes
0answers
56 views

Smarter log rotation

I want to reduce the amount of logs in my system, but reduce them smartly. The general idea is, each time you rotate, look for any warning/error/critical level logs, and keep 2 minutes of log context ...
4
votes
1answer
1k views

learning about general logging/logrotation on linux?

Assume, that beside the Apache web server logs I never had any contact with any kind of (professional) logs on any operation system. So Logging, although I understand some basics, is all together a ...
13
votes
1answer
16k views

How can I set up logrotate to rotate logs hourly?

According the the Unix and Linux Administration Handbook and man, logrotate has options for daily, weekly, and monthly, but is there a way to add an hourly option? This blog post mentions you can set ...
1
vote
1answer
425 views

How can I learn some advanced logrotate techniques?

The logrotate section in the Linux administrator's handbook is very brief. The man page is ok but lacks examples. Where can I find some more comprehensive information, examples, and best-practice ...