Created
February 18, 2020 18:24
-
-
Save tonymeehan/34298b5bff737ee8475970a75308fdfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output { | |
if [@metadata][pipeline] { | |
elasticsearch { | |
hosts => ["http://localhost:9200"] | |
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}" | |
user => "elastic" | |
password => "changeme" | |
pipeline => "%{[@metadata][pipeline]}" | |
} | |
} else { | |
elasticsearch { | |
hosts => ["http://localhost:9200"] | |
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}" | |
user => "elastic" | |
password => "changeme" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment