logstash json example

root@457165ff1c3e:/# cat /etc/logstash/conf.d/* | grep -v \#

input {
gelf { codec => “json” }
}

filter {
json {
source => “message”
}
}

output {
elasticsearch { hosts => [“0:9200”] }
}
root@457165ff1c3e:/#

Leave a Reply