Last active
December 6, 2016 16:09
-
-
Save GaryRogers/9e03e1b1360087f08b08 to your computer and use it in GitHub Desktop.
Logstash Redis warning pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redis Debug Config to match on normal and warning Redis log lines. | |
input { | |
stdin { codec => "plain" } | |
} | |
filter { | |
grok { | |
# Extends the normal redis pattern to account for warnings as well. | |
match => [ "message", "\[%{POSINT:pid}\] %{REDISTIMESTAMP:timestamp} # %{LOGLEVEL:level} %{GREEDYDATA:mymessage}"] | |
match => [ "message", "\[%{POSINT:pid}\] %{REDISTIMESTAMP:timestamp} \* %{GREEDYDATA:mymessage}"] | |
} | |
} | |
output { | |
stdout { codec => rubydebug } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment