Skip to content

Instantly share code, notes, and snippets.

@kostyaev
Last active November 11, 2019 13:09
Show Gist options
  • Save kostyaev/e6dd89556599a43427c5 to your computer and use it in GitHub Desktop.
Save kostyaev/e6dd89556599a43427c5 to your computer and use it in GitHub Desktop.
Logstash config for JBoss AS 7
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