We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm looking for creating hourly log rotation for fast growing logs, in my case haproxy Here is my current configuration : /etc/logrotate.d/haproxy
/etc/logrotate.d/haproxy
/var/log/haproxy.log { su syslog syslog rotate 24 size 500M maxsize 500M hourly missingok notifempty compress delaycompress postrotate invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true endscript }
I'm able to create an hourly job for haproxy using :
options: - hourly
But unfortunately, there is no hourly crontab by default on Ubuntu 16.04 (xenial) but only a daily one : /etc/cron.daily/logrotate
/etc/cron.daily/logrotate
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm looking for creating hourly log rotation for fast growing logs, in my case haproxy
Here is my current configuration :
/etc/logrotate.d/haproxy
I'm able to create an hourly job for haproxy using :
But unfortunately, there is no hourly crontab by default on Ubuntu 16.04 (xenial)
but only a daily one :
/etc/cron.daily/logrotate
The text was updated successfully, but these errors were encountered: