You've already forked docker-erlang-example
mirror of
https://github.com/erlang/docker-erlang-example.git
synced 2025-09-14 00:41:47 +03:00
This commit copies Siri Hansen's (@sirihansen) ELK stack example from: https://github.com/erlang/docker-erlang-example/tree/elk
30 lines
574 B
Plaintext
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
|
|
}
|
|
}
|