-
Notifications
You must be signed in to change notification settings - Fork 1.7k
No debug log #2257
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
Comments
Possibly a duplicate of owasp-modsecurity/ModSecurity-nginx#17 But I see the issue is closed |
Hi @AnoopAlias, Did you observe any crash on your system previous to the logs not being generated? |
No, the server works just fine and I can see mod_sec normal logging in the Nginx error_log, but the explicit SecDebugLog and SecDebugLogLevel directives are simply ignored it seems |
@AnoopAlias I have seen two cases where that situation occurs:
Please check if any of those are happening so we can guide better the debug process. |
I can confirm this is not SELinux/AppArmor as it is a cPanel server and SELinux is not in the enabled state https://i.imgur.com/tAWyAii.png The permissions also look fine, in fact I tried 777 for the debug.log file and this didn't help too I am little lost on listing and deleting shared memory attached to the process, but I have tried several times to restart the process after normal shutdown and this doesn't help |
Restart the process, indeed will not help. Is this server suitable for a restart? |
@AnoopAlias restarting the server made it workable again? |
Describe the bug
No, debug log being written even after explicitly setting SecDebugLog and SecDebugLogLevel 9
A clear and concise description of what the bug is.
nginx version: nginx/1.17.8
ibmodsecurity.so.3.0.4
SecDebugLog /var/log/nginx/debug.log
SecDebugLogLevel 9
The file /var/log/nginx/debug.log is blank
Logs and dumps
no logs
Server (please complete the following information):
nginx version: nginx/1.17.8
ibmodsecurity.so.3.0.4
OS: Centos7
Rule Set (please complete the following information):
SecRemoteRules XXXXXX https://rules.malware.expert/download.php?rules=generic
The text was updated successfully, but these errors were encountered: