Skip to content

Instantly share code, notes, and snippets.

@AdrianRossouw
Created November 21, 2014 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianRossouw/3afb631a5d1036bd4715 to your computer and use it in GitHub Desktop.
Save AdrianRossouw/3afb631a5d1036bd4715 to your computer and use it in GitHub Desktop.
input {
tcp {
codec => json_lines {
charset => "UTF-8"
}
port => 3000
}
}
filter {
date {
match => [ "datetime", "MMM d kk:mm:ss.SSS", "UNIX" ]
remove_field => "datetime"
}
multiline {
pattern => "^\s"
what => "previous"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch_http {
host => "192.168.0.153"
port => "9200"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment