Created
June 11, 2015 14:38
-
-
Save a-h/602dc9c744583f60884f to your computer and use it in GitHub Desktop.
WebLogic Logstash Filter
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
filter { | |
## WebLogic Server Http Access Log | |
if [type] == "weblogic-access" { | |
grok { | |
match => [ "message", "%{IP:client} - - \[(?<timestamp>%{MONTHDAY}[./-]%{MONTH}[./-]%{YEAR}:%{TIME}\s+%{ISO8601_TIMEZONE})] \"%{WORD:verb} %{URIPATHPARAM:uri}\s+HTTP.+?\" %{NUMBER:status} %{NUMBER:response_time}" ] | |
} | |
date { | |
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be used with Logstash and stored as /etc/logstash/conf.d/12-weblogic.conf
To actually have messages to input, the logstash forwarder needs to collect messages, e.g.:
/etc/logstash-forwarder.conf