Skip to content

Instantly share code, notes, and snippets.

@jgrgt
Created September 14, 2012 09:43
Show Gist options
  • Save jgrgt/3721053 to your computer and use it in GitHub Desktop.
Save jgrgt/3721053 to your computer and use it in GitHub Desktop.
A logstash configuration to track Pylabs 5.1 logs.
input {
stdin {
type => "stdin-type"
}
file {
type => "pylabs"
path => [ "/opt/qbase5/var/log/pylabslogs/*/*.log" ]
}
}
filter {
grok {
type => "pylabs"
pattern => [ "%{POSINT:level} %{WORD:appname} %{TIME:time}: %{GREEDYDATA:message}" ]
}
}
output {
stdout {
debug => true
debug_format => json
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment