Skip to content

Instantly share code, notes, and snippets.

@tamros
Created November 20, 2018 16:43
Show Gist options
  • Save tamros/5594296498660782a044b22712477928 to your computer and use it in GitHub Desktop.
Save tamros/5594296498660782a044b22712477928 to your computer and use it in GitHub Desktop.
filebeat.prospectors:
- type: log
enabled: true
paths:
- /home/elastic/datasets/java_stack_trace.log
fields:
type: "java_stack_trace"
multiline.pattern: '^[[:space:]]'
multiline.negate: false
multiline.match: after
setup.template.settings:
index.number_of_shards: 1
output.elasticsearch:
hosts: ["localhost:9200"]
output.elasticsearch.index: 'filebeats-%{[fields.type]}-%{+yyyy.MM.dd}'
setup.template.enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment