1
0
mirror of https://github.com/erlang/docker-erlang-example.git synced 2025-09-14 00:41:47 +03:00
Files
Kjell Winblad 36d97779cc Refactoring: Copy ELK stack example
This commit copies Siri Hansen's (@sirihansen) ELK stack example from:

https://github.com/erlang/docker-erlang-example/tree/elk
2019-05-20 14:28:51 +02:00

30 lines
574 B
Plaintext

input {
gelf {
use_udp => true
port => 44622
}
}
filter {
# If a log message can be parsed as json, do so, and populate the
# log event with fields found.
json {
skip_on_invalid_json => "true"
source => "message"
}
# Convert the level field to an integer
mutate {
convert => {
"level" => "integer"
}
}
}
output {
file {
path => "/usr/share/logstash/logs/output.log"
}
elasticsearch {
hosts => ["elasticsearch:9200"]
http_compression => true
}
}