Skip to content

Instantly share code, notes, and snippets.

@jeqo
Created August 11, 2014 16:06
Show Gist options
  • Save jeqo/2bb1e256abb20561152f to your computer and use it in GitHub Desktop.
Save jeqo/2bb1e256abb20561152f to your computer and use it in GitHub Desktop.
Logstash configuration for WLS logs
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