logrotate // fluent-bit logs

    cd /etc/logrotate.d/
    vi fluent-bit
# geoip warnings and errors can be pretty hefty therefore 1h rotation
# and no delaycompress
/var/log/fluent-bit*log {
        hourly
        rotate 1
        missingok
        compress
        create
}
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
Copyright © 2024 Pierre-Philipp Braun