I want to create logrotate in logrotate.d for modsecurity log.
i find following code, but it dont works.
who can help me.
i find following code, but it dont works.
Code:
/var/log/modsec_audit.log {
rotate 7
compress
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
who can help me.