We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello dears,
i'm running modsec on latest nginx on centos7. The problem is that i cannot rotate the logs with logrotate.
My logrotate config file for modsec is the following:
/var/log/modsec_audit.log { daily rotate 7 missingok compress postrotate [ ! -f /var/run/nginx.pid ] || kill -USR1 cat /var/run/nginx.pid endscript }
cat /var/run/nginx.pid
The text was updated successfully, but these errors were encountered:
Hi @albgen,
libModSecurity is not implementing the support for kill -USR1. Try nginx reload instead.
kill -USR1
To follow the development of this feature, keep an eye on this issue: #2304
Sorry, something went wrong.
i tried with the following config
/var/log/modsec_audit.log { daily rotate 7 missingok compress postrotate /usr/sbin/nginx -s reload endscript }
but the result was the following which means the new log for the day is 0:
zimmerle
No branches or pull requests
Hello dears,
i'm running modsec on latest nginx on centos7. The problem is that i cannot rotate the logs with logrotate.
My logrotate config file for modsec is the following:
The text was updated successfully, but these errors were encountered: