Hello,
I noticed that to get Mod_security writing to its modsec_audit.log I need to stop and restart Mod_security.
Once started the log file grows explosively.
I use logrotate to rotate the modsec_audit.log every 24 hours, placing the following in /etc/logrotate.conf
This works fine, but to make Mod_security start writing to the new modsec_audit.log I need to manually restart Mod_security.
Two questions:
- What can be done to avoid having to manually restart Mod_security on a daily basis?
- What can I do to reduce the amount of info Mod_security writes to its modsec_audit.log?
Greetings.
I noticed that to get Mod_security writing to its modsec_audit.log I need to stop and restart Mod_security.
Once started the log file grows explosively.
I use logrotate to rotate the modsec_audit.log every 24 hours, placing the following in /etc/logrotate.conf
Code:
/var/log/modsec_audit.log {
missingok
daily
rotate 4
compress
}
This works fine, but to make Mod_security start writing to the new modsec_audit.log I need to manually restart Mod_security.
Two questions:
- What can be done to avoid having to manually restart Mod_security on a daily basis?
- What can I do to reduce the amount of info Mod_security writes to its modsec_audit.log?
Greetings.