Last active
May 17, 2016 01:05
-
-
Save lozadaOmr/b5e5c40c57a3805fdd61d6d1ff4d62f8 to your computer and use it in GitHub Desktop.
Log file loader for logstash.
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
input { stdin { } } | |
filter { | |
grok { | |
match => { "message" => "%{TIMESTAMP_ISO8601:timestamp} - %{WORD:loglevel}: %{WORD:type}" } | |
} | |
} | |
output { | |
elasticsearch { hosts => ["localhost:9200"] } | |
stdout { codec => json } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment