-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feature request: audit log only if disruptive #2696
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
ctl:auditengine should solve this issue: #2606 However, it's rule based. |
"In some cases .. " Please provide at least one specific example where the current functionality is not what you would reasonably expect. |
@martinhsv As we use We'd like to only log for disruptive requests.
Then if only id-1 / id-2 matched, if it's not reached id-9 (score evaluation), then matched auditlog is off. noauditlog for id-1 / id-2 cannot solve this problem, if id-9 is logged, there is no auditlog for id-1/id-2 at all. |
@martinhsv Actually, I have implemented all the feature request by me. |
Hi @liudongmiao , If you want to omit all writing to the audit log if the HTTP response code is 200, you could create a rule that tests RESPONSE_STATUS and include 'ctl:auditEngine=Off' in its actions. (Note that ctl:auditEngine is available in v3/master but not in the tagged version of v3.0.6 from last November.) |
Hi @liudongmiao , Have you tried using that last suggestion? Since that posting, ctl:auditEngine has been available in multiple official releases (since v3.0.7). |
@martinhsv Yes, ctl:auditEngine solve my issues. |
coreruleset
v3 introduces Paranoia Level, assign score for rule, and evaluate in separate rule.In some cases, the request is not disruptive, however it's logged in audit log. We'd like to log disruptive request only in product environment.
And, in DetectionOnly mode, the request is not disruptive at all, however, it should be logged too.
(Currently, we modify the source code, use severity level to check for log.)
The text was updated successfully, but these errors were encountered: