Skip to content

Instantly share code, notes, and snippets.

@0xtf
Created May 1, 2020 22:19
Show Gist options
  • Save 0xtf/c4d40732f6323cf50a0b908fcc100d76 to your computer and use it in GitHub Desktop.
Save 0xtf/c4d40732f6323cf50a0b908fcc100d76 to your computer and use it in GitHub Desktop.
example of full overrides configuration using literals and regex
overrides:
- field: event.outcome
value: failure
regexes:
- (\(\(aws.cloudtrail.error_message.keyword:.* event.action:\"ConsoleLogin\"\)\))
- (\(\(aws.cloudtrail.error_code.keyword:.* event.action:\"ConsoleLogin\"\)\))
- (\(\(aws.cloudtrail.error_message.keyword:.* aws.cloudtrail.response_elements.keyword:\*Failure\*\)\))
- (\(\(aws.cloudtrail.error_code.keyword:.* aws.cloudtrail.response_elements.keyword:\*Failure\*\)\))
- (\(\(event.action:\"ConsoleLogin\".* aws.cloudtrail.error_message.keyword:\*\)\))
- (\(\(event.action:\"ConsoleLogin\".* aws.cloudtrail.error_code.keyword:\*\)\))
- (\(\(aws.cloudtrail.response_elements.keyword:\*Failure\*.* aws.cloudtrail.error_message.keyword:\*\)\))
- (\(\(aws.cloudtrail.response_elements.keyword:\*Failure\*.* aws.cloudtrail.error_code.keyword:\*\)\))
- field: event.outcome
value: success
literals:
- 'NOT (event.outcome:failure)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment