Skip to content

Instantly share code, notes, and snippets.

@cemo
Forked from andrewrlee/gist:6486801
Created August 28, 2014 15:09
Show Gist options
  • Select an option

  • Save cemo/2f5a0c7f8f3dcdca1543 to your computer and use it in GitHub Desktop.

Select an option

Save cemo/2f5a0c7f8f3dcdca1543 to your computer and use it in GitHub Desktop.
input {
stdin { }
file {
type => "applogs"
# Wildcards work, here :)
path => [ "/home/alee/workspaces/java-workspaces/elasticsearch-example/graph-presenter/logs/*.log" ]
}
}
filter{
grok{
match => ["message", "%{WORD:level} %{SYSLOG5424SD:time} %{JAVACLASS:class}: _data_%{GREEDYDATA:json}"]
}
json {
source => "json"
}
}
output { stdout { codec => rubydebug } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment