Sample Header Ad - 728x90

Logrotate is not rotating automatically, but it's working with logrotate -d and logrotate -f

0 votes
2 answers
2914 views
Logrotate is not rotating automatically, but it's working with logrotate -d and logrotate -f with no errors showing. But it's not running automatically each day. Below is the logrotate -d output. logrotate -d /etc/logrotate.d/lumen reading config file /etc/logrotate.d/lumen Allocating hash table for state file, size 15360 B Handling 1 logs rotating pattern: /var/www/*/storage/logs/*.log after 1 days (365 rotations) empty log files are rotated, old logs are removed switching euid to 48 and egid to 48 considering log /var/www/testdir/storage/logs/laravel.log log needs rotating rotating log /var/www/testdir/storage/logs/laravel.log, log->rotateCount is 365 Converted ' -%Y%m%d' -> '-%Y%m%d' dateext suffix '-20190425' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' compressing log with: /bin/gzip fscreate context set to unconfined_u:object_r:httpd_user_rw_content_t:s0 renaming /var/www/testdir/storage/logs/laravel.log to /var/www/testdir/storage/logs/laravel.log-20190425 switching euid to 0 and egid to 0
Asked by Pat (193 rep)
Apr 25, 2019, 06:11 AM
Last activity: May 11, 2025, 07:07 PM