-
-
Save wljtcc/5c03e5a6d9d071d6d8bbfdeb6668ee34 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