-
Notifications
You must be signed in to change notification settings - Fork 302
added disable error log support #360
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
base: master
Are you sure you want to change the base?
Conversation
modified old PR owasp-modsecurity#327 Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
|
Hi @fatihusta, many thanks for update the mentioned patch. Could you add a new test case to the CI workflow, like this one? Just turn on this new feature, send an attack which triggers a rule, and check that the error.log is empty. Thanks! |
|
Thank you for this. I'm already using it :) My only feedback would be that the name of the variable is a bit confusing, you turn it ON to turn something OFF. Just my two cents |
Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
|
@fatihusta thanks for adding the test. What do you think about @tomsommer's idea. I think you should consider it - I agree with him, the current implementation has a bit weird logic. Also, after we agreed what should be the final keyword, please add the documentation into our README (README is part of the repository). |
- tests are changed with new directive name - nginx.conf updated with new directive name - added doc Signed-off-by: Fatih USTA <fatihusta86@gmail.com>
|
|
Hi Thanks @tomsommer @airween |
Thanks - I'm going to check this soon. Until then, could you add this new keyword into README.md? |
I already added modsecurity_use_error_log key into README.md. |
|
@fatihusta thanks again your PR. I tried it in my dev environment, but unfortunately the generated log messages still appear in error.log. I used this directive in nginx.conf's Yet, when I send a request that is blocked by the server, I see every log line in error.log. Could you help me to set up Nginx to check it works as we expect it? |
Hi, I don't know what is your setup but below config should be enough for testing. Testing pipeline worked well with this. |
|
This is what I use: The config uses CRS 4.21.0. checking the log: but |
|
Ok, I'll check again. I'm preparing my setup. |
|
I rebuilded from scratch and tested again. It's working. I'm not sure why your setup is not working but here is screen capture. modsecurity_use_error_log.mov |
|
Thanks - it's still interesting, because now I have the same config (no CRS, There are many If I put the Do you have any idea why does not work that? |
|
It's realy interesting. I can't reproduce your problem. Here is my output. modsecurity_use_error_log_gdb.mp4Note: I added this dd line for easy debugging. Debug Nginx conf |
|
Thanks. I checked with this config (I made some modifications: I used Now I have to find the reason, why does not work with a "regular" config. Thanks again. |



modified old PR
#327