-
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
no message in log and auditlog #58
Comments
The reason why I create the issue here is that when I use Modsecurity without nginx connector, I can log message, but now I can't. So, I guess it maybe caused by connector or my configuration is wrong. |
Hi @zzhclare, Indeed, you should be able to see at very least the debug log. Do you mind to change your debug log level to 9, and the respective file to /tmp/debug.log. I want to make sure that your web server has permission to write in the choose directory.
|
@zimmerle I find the reason now! When I change the configuration, I must restart the nginx service but not just reload the configuration file ( |
Hi @zzhclare, That is odd indeed. I going to perform further investigation. The reload should be enogth to reload the configurations. I believe that the problem is related to one of the logging lockers. It seems that the last process to die (worker) is closing (and/or closing) that supposedly to be used by the new worker. Further investigation is needed. |
Hi @zimmerle, |
@NisariAIT, Pull request #116 is up for evaluation to address the behaviour that you've mentioned. |
As #116 is now merged. Closing this issue. |
hi
I'm using libmodsecurity-3.0.0 + modsecurity-nginx-0.0.1 + nginx-1.12.0. I could not find message in the log file even if rule has been triggered.
and here is my nginx configuration
and this is modsec_includes.conf
and in modsecurity.conf, I define the log and audit log path
Even if the rule(id:44444) is triggered , I cannot find any message in the debug.log or modsec_audit.log
I really don't know why this happened and please correct me if my configuration is wrong.
The text was updated successfully, but these errors were encountered: