Created
August 11, 2014 16:06
-
-
Save jeqo/2bb1e256abb20561152f to your computer and use it in GitHub Desktop.
Logstash configuration for WLS logs
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
input { | |
file { | |
path => "C:/tmp/log/soa_server1.out" | |
start_position => beginning | |
} | |
} | |
filter { | |
if [path] =~ "soa_server1" { | |
mutate { replace => { type => "soa_server1-out" } } | |
multiline { | |
pattern => "^<" | |
negate => true | |
what => "previous" | |
} | |
grok { | |
match => { "message" => "%{WLS_SERVER_OUT}" } | |
} | |
date { | |
match => [ "wls_timestamp", "MMM dd, yyyyy HH:mm:ss a 'CEST'" ] | |
locale => "en" | |
} | |
} | |
} | |
output { | |
stdout { codec => rubydebug } | |
elasticsearch { | |
host => "logmachine" | |
protocol => "http" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment