LTW-GCR-CSOC / csoc-installation-scripts

GCR - Cybersecurity Operations Center Project
GNU General Public License v3.0
15 stars 9 forks source link

Add configuration on install for log rotation #16

Open CUGCR opened 7 years ago

CUGCR commented 7 years ago

Check with Ahmed -

cd /etc/logrotate.d/
$ cat > dionaea << EOF
/opt/dionaea/var/log/dionaea*.log {
       notifempty
       missingok
       rotate 28
       daily
       delaycompress
       compress
       create 660 root root
       dateext
       postrotate
               kill -HUP `cat /opt/dionaea/var/run/dionaea.pid`
       endscript
}
EOF

//etc/logrotate.d/dionaea/