Skip to content

Instantly share code, notes, and snippets.

@orjan
Created December 2, 2020 07:38
Show Gist options
  • Save orjan/971da262e2125fed09b4bf51d906f1f1 to your computer and use it in GitHub Desktop.
Save orjan/971da262e2125fed09b4bf51d906f1f1 to your computer and use it in GitHub Desktop.
Filebeat processor
filebeat.inputs:
- type: log
paths:
- /Users/orjan/Code/sandbox/filebeat/*.log
processors:
- if:
contains:
message: "customer"
then:
- add_fields:
fields:
team: jump-customer
else:
- add_fields:
fields:
team: jump-cpc
output.console:
pretty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment