Skip to content

Instantly share code, notes, and snippets.

@rnavagamuwa
Created July 13, 2020 17:58
Show Gist options
  • Save rnavagamuwa/f2f81a3a3ae2d72b69fde41792b058e7 to your computer and use it in GitHub Desktop.
Save rnavagamuwa/f2f81a3a3ae2d72b69fde41792b058e7 to your computer and use it in GitHub Desktop.
input {
beats {
type => "beats"
host => "127.0.0.1"
port => 5044
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
stdout {
codec => rubydebug
}
}
filter {
grok {
match => [ "message", "TID: \[%{INT:TID}\] \[\] \[%{TIMESTAMP_ISO8601:timestamp}\]\s+%{WORD:loglevel}\s+{%{JAVACLASS:java_class}}%{GREEDYDATA:FlowMessage}" ]
tag_on_failure => ["failed-to-parse"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment