logrotate // fluent-bit logs

warning

we need to reduce rotation delay to 1h

setup

    cd /etc/logrotate.d/
    vi fluentbit

see https://pub.nethence.com/system/ansible/playbooks/fluentbit/templates/logrotate_fluentbit

cd /etc/
cp -pi cron.daily/logrotate cron.hourly/

resources

https://unix.stackexchange.com/questions/29574/how-can-i-set-up-logrotate-to-rotate-logs-hourly

https://stackoverflow.com/questions/25485047/hourly-rotation-of-files-using-logrotate


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT