Created
May 13, 2014 08:43
-
-
Save mre/723d356f1dde8030a80c to your computer and use it in GitHub Desktop.
logstash config
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 { | |
| # Path to your logs | |
| path => "/logs/*" | |
| start_position => "beginning" | |
| } | |
| } | |
| filter { | |
| grok { | |
| match => { "message", "(?<DateTime>\d{1,2}/\d{1,2}/\d{2}\s.*MSK)\s(?<threadId>\d\w{7})\s(?<BriefName>\w{13})\s(?<LoggingLevel>.)\s(?<className>ru\..*.Impl)\s(?<MethodName>\w+)\s(?<info>.*)\s(?s:(?<info1>.*))" } | |
| } | |
| } | |
| output { | |
| # Use the following for debugging output | |
| stdout { codec => rubydebug } | |
| # You can also check for a parse failure before processing the data | |
| if !("_grokparsefailure" in [tags]) { | |
| redis { host => "10.0.0.5" data_type => "list" key => "logstash" } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment