Tuning Log Rotation

Overall setup

mv -i /etc/logrotate.conf /etc/logrotate.conf.dist
grep -vE '^#|^$' /etc/logrotate.conf.dist > /etc/logrotate.conf.clean
grep -vE '^#|^$' /etc/logrotate.conf.dist > /etc/logrotate.conf
    vi /etc/logrotate.conf

    tabooext + .dist

Sample log targets

fluent-bit

see logrotate-flb

nginx

see logrotate-nginx

suricata

see logrotate-suricata


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun