-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No error log if noauditlog is set #3180
Comments
Hi @Rapsody09, could you show your Nginx's Please note that you should pass a severity level to that. The minimum level is what you want to see in your I suggest you to set up something like this:
|
Than @airween for your help, Here is my nginx log setting :
I tried some things without success : for example increasing severity in the rule to EMERGENCY instead INFO |
Hi @Rapsody09, thanks - seems like it's a new bug that you've found.
Yes, that turns off the auditlog engine for whole transaction.
What do you want to achieve? What's your aim? |
I use this kind of log to trace specific actions on my web applications (For example specific usage of an API key, connection from a specific IP). I was using a lot like that with modsecurity 2.9 / apache without any issue, but I just migrated to 3.X / nginx recently and wanted to do the same :) |
Hi @Rapsody09, sorry for the late reply. I think this is a known bug in libmodsecurity3 - meanwhile I faced this problem somewhere else, so we have to fix that. Thanks for your report. |
Describe the bug
The rule like this example below does not log anything at all in error log, I have to activate auditlog instead noauditlog to get log in error log (and also in audit log, but this is not what I want):
SecRule REQUEST_URI "@beginsWith /" "id:1000100,phase:1,log,noauditlog,pass,severity:INFO,logdata:'Test'"
Expected behavior
For every request beginning with / the rule above should log in error log only, and no audit log, but I get no log at all.
I have to active audit log to make the log appear in both error log and audit log, but I so not want any audit log for this rule.
Server (please complete the following information):
Rule Set (please complete the following information):
Additional context
My log config is configured like this :
The text was updated successfully, but these errors were encountered: