Skip to content

Commit

Permalink
Add exceptions fields/comps/values to rules files
Browse files Browse the repository at this point in the history
Take advantage of the changes to support exceptions and refactor rules
to use them whenever feasible:

- Define exceptions for every rule. In cases where no practical
  exception exists e.g. "K8s <obj> Created/Deleted", define an empty
  exception property just to avoid warnings when loading rules.
- Go through all rules and convert macros-used-as-exceptions that
  matched against 2-3 filter fields into exceptions. In most cases,
  switching from equality (e.g proc.name=nginx) to in (e.g. proc.name
  in (nginx)) allowed for better groupings into a smaller set of
  exception items.
- In cases where the exception had complex combinations of fields, keep
  the macro as is.
  • Loading branch information
mstemm committed Oct 15, 2020
1 parent f4297d0 commit 1d9a862
Show file tree
Hide file tree
Showing 2 changed files with 542 additions and 254 deletions.
Loading

0 comments on commit 1d9a862

Please sign in to comment.