Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Last active May 17, 2016 01:05
Show Gist options
  • Save lozadaOmr/b5e5c40c57a3805fdd61d6d1ff4d62f8 to your computer and use it in GitHub Desktop.
Save lozadaOmr/b5e5c40c57a3805fdd61d6d1ff4d62f8 to your computer and use it in GitHub Desktop.
Log file loader for logstash.
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