Skip to content

Instantly share code, notes, and snippets.

@bbannier
Created May 23, 2016 08:42
Show Gist options
  • Save bbannier/db3eb2a5d55592d0ffbd1d1922a2db32 to your computer and use it in GitHub Desktop.
Save bbannier/db3eb2a5d55592d0ffbd1d1922a2db32 to your computer and use it in GitHub Desktop.
filter {
grok {
match => { "message" => "^(?<loglevel>[F|E|I|W])%{MONTHNUM:month}%{MONTHDAY:monthday}\s+%{TIME:time}\s+%{POSINT:pid}\s+(?<file>\w*.\w*):%{POSINT:line}]\s+%{GREEDYDATA:msg}" }
}
mutate {
add_field => {
"timestamp" => "%{time} %{month} %{monthday} 2016"
}
}
date {
match => [ "timestamp", "HH:mm:ss.SSSSSS MM d yyyy" ]
# locale => "en"
}
}
input {
stdin { type => "dump" }
tcp {
type => "dump"
port => 3333
}
}
output {
# stdout { }
elasticsearch {
index => "marathon-1052"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment