Last active
August 29, 2015 14:06
-
-
Save hamiltont/0bfc70ca5f4996dd773a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
input { | |
file { | |
type => "couchpotato" | |
path => [ "/logs/couchpotato/CouchPotato.log" ] | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
} | |
} | |
filter { | |
# Get rid of any color codes | |
# NOT WORKING | |
#mutate { | |
# gsub => [ "message", "\\e\[0m", ""] | |
#} | |
grok { | |
match => [ "message", "%{MONTHNUM}-%{MONTHDAY} %{TIME} %{LOGLEVEL} \\e\[0m\[%{DATA:module}\] %{GREEDYDATA:couch_message}\\e\[0m" ] | |
} | |
} | |
output { | |
stdout { codec => rubydebug } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full config (updated to catch space or not):