Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johan-carlsson/809437bd3bd33394ab40275289c3b13f to your computer and use it in GitHub Desktop.
Save johan-carlsson/809437bd3bd33394ab40275289c3b13f to your computer and use it in GitHub Desktop.
Logstash Mule event log
input {
file {
path => "/opt/mule-enterprise-standalone-3.8.4/logs/events.log"
start_position => "beginning"
type => "mule-event"
}
}
filter {
if [type] == "mule-event" {
json{
source => message
}
#2017-06-15T18:07:43465+0200
date {
match => ["timestamp", "yy-MM-dd'T'HH:mm:SSSSSZ"]
target => "@timestamp"
}
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
#user => "elastic"
#password => "changeme"
template_overwrite => true
}
stdout { codec => rubydebug }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment