-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
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
Increase log level for disruptive actions to error #116
Conversation
Merged. |
@zimmerle Can this change be re-evaluated? It seems strange to me to log disruptive actions through the NGINX error log while ModSecurity also has an audit logger that grants much more control over what is logged, where the logs go, and in what format. I could raise my NGINX error log to |
One of the goals with v3 is also to make the behaviour not too different from v2 and this changeset was also meant to provide this similar experience with v2. But we should consider making this a configuration flag so as to allow the flexibility for different use cases. What do you think? |
A configuration flag would be very useful. At the moment I am forced to carry a patch to revert the log level to Given a clean slate without considering current behavior, I would have the ModSecurity connector log disruptive actions in NGINX's error log at I understand the reasoning that this might be confusing for new users, who just want to verify that ModSecurity is working at all. But might it not be better to document some recommended configuration for debugging purposes? For example, new users could temporarily raise (lower...?) NGINX's error log level to |
I had to raise the error_log level to info to see some destructive actions in the logs. The issue was already reported #112 (comment)
The only reference to I guess that Should I open a new issue? |
This pull request is intended to change the log level from warn to the "default" of error when writing log entries of disruptive actions on Nginx error_log.
I've noticed this would be contradictory to @defanator's commit b51e555 which although it seems technically accurate it seems like it was getting some users a bit confused of why they were not getting ModSecurity logs on Nginx by default. This is intended to resolve issue #112