openlitespeed
openlitespeed copied to clipboard
/usr/local/lsws/logs/auditmodsec.log can fill all the storage space
This log does not has any kind of rotation, so it can fill all the server storage free space.
I think this log file is managed by mod_security module, it is not fixed, but configured in mod_security configuration, even though, the mod_security module is embedded in web server, web server does not try to understand its configurations, just pass through. thus difficult for web server to rotate it . It can be done externally via cron job, or some log rotation daemon services.
Just to make a note, this is also happening with the log /usr/local/lsws/logs/modsec.log.
/usr/local/lsws/logs/modsec.log is the same thing, also directly used by libmodsecurity.