What does the following show (run as root):/usr/sbin/logrotate --debug /etc/logrotate.conf [by simon_matthews]
I have lograotate configured on CentOS 6. It works fine when I run it manually, but with CRON it doesn't work. Cron says in its logs: "All fine, I run you command" but nothing happens.
For logrotate I have a cron task that runs hourly.
In logrotate.conf there's the directive "daily". But the log files are rotated hourly, not daily.
Why does it happen? What's this directive for?
I'm working on an embedded linux system where the root filesystem is mounted from an SDcard.
I want to get all users time usage on a linux system via the last or ac commands and using a perl script to manipulate the output of the data.
What actually calls logrotate in CentOS 6.3? I looked inside of /etc/init.d but nothing related to logrotate there. Also, nothing in the crontab for the root user.
I put a logrotate configuration file in /etc/logrotate.d/ and expected the logs to rotate at a consistent time; however, they do not...
# logrotate -d /etc/logrotate.conf
reading config info for /var/log/rsyncd.log
error: rsync:12 duplicate log entry for /var/log/rsyncd.log
error: found error in /var/log/rsyncd.log , skipping
removing last 1 log configs
# echo $?
Since logrotate is usually run using cron, cron exits with OK because logrotate exits with OK. Should this be done differently?
What account does logrotate usually run under. We have one machine where logrotate does not appear to be running automatically but I just ran it manually and it rotated fine.
I'm running CentOS6 and I configured rsyslog to monitor my iptables warning messages and dump them in /var/log/iptables.log. I went through my logrotate.d/syslog file and added iptables.log so logrotate would pick up and rotate the logs.