-
Notifications
You must be signed in to change notification settings - Fork 291
feature request: make server log an option #274
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
Are you proposing something akin to SecAuditEngine, where you could do something like this?:
Or do you mean a SecRule action? If so, we already have log/nolog? (Granted, there does appear to be at least one use case that does not seem to work quite right in v3, as described in #2698 .) |
@martinhsv We use |
@martinhsv Yes, we need such option. The code in
|
And in ModSecurity, there are always log for |
My point was that we already have functionality that is supposed to do what you are suggesting (i.e. 'nolog') -- unless I've misunderstood what you meant. As I said, I agree that that there is a bug in the 'nolog' functionality as is described in owasp-modsecurity/ModSecurity#2698. However, for the purpose of this ModSecurity-nginx issue that you have created, assuming that 2698 gets resolved, is this ticket supposed to represent some functionality beyond that? If this ticket just describes the functionality that is supposed to be provided by 'nolog' then this should be closed as a duplicate of 2698. |
Hi, it's not a ModSecurity's bug, in
With disruptive actions the |
Closing for reasons listed previously. |
Wait @martinhsv, it is not a ModSecurity's bug, but a ModSecurity-nginx's one. Did you read my comment? If you want to keep that logging you should add an option di disable it or, better, an option to change the logging level. |
I have not made any detailed assessment of your comments. I am a bit skeptical though; my suspicion is that the eventual fix will still be in ModSecurity itself rather than the connector. The reason for closing this item is because it doesn't fundamentally represent a different issue to the already-open ModSecurity issue referenced above. And it is undesirable to have multiple github issues open that are essentially duplicates. If I'm wrong, and it does eventually turn out that the fix for #2698 is a change in ModSecurity-nginx, rather than ModSecurity that's not a grave matter -- it wouldn't be the first time that a fix for an issue in one project is actually an implementation in the other. |
@martinhsv the only way to fix it in ModSecurity is not populating the The snipped of code I pasted before is not inside the callback function, but in I don't know, your choice, personally I only changed the logging level in that line, which logs without the callback |
Currenty,
ModSecurity-nginx
callmsc_set_log_cb
anyway.I'd like to make
serverLog
an option in connector. For myself, I'd like to turn it off.The text was updated successfully, but these errors were encountered: