-
-
Save wljtcc/5a65e24d610ffec0d0c9cf6d6c93d2ee to your computer and use it in GitHub Desktop.
Logstash config for JBoss AS 7
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 => "/Users/virtuozzo/Servers/jboss-as-7.1.1.Final/standalone/log/server.log" | |
start_position => end | |
} | |
} | |
filter { | |
mutate { replace => { "type" => "local-jboss" } } | |
grok { | |
match => [ "message", "%{DATA} %{WORD:loglevel} \[%{DATA:class}\] \(%{DATA:thread}\) %{GREEDYDATA:message}" ] | |
overwrite => [ "message" ] | |
} | |
ruby { | |
code => " | |
event['@timestamp'] = event['@timestamp'].localtime('+04:00') | |
" | |
} | |
} | |
output { | |
elasticsearch { host => localhost } | |
stdout { codec => rubydebug } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment