practica-loki-grafana/3-2-logstash-plugin/logstash.conf

30 lines
389 B
Plaintext
Raw Normal View History

2022-04-12 19:55:56 +02:00
input {
beats {
port => "5044"
}
}
filter {
json {
source => "message"
target => "fields"
}
mutate {
add_field => {
"job" => "logstash"
}
remove_field => [ "user-identifier" ]
}
}
output {
elasticsearch {
hosts => [ "elasticsearch:9200" ]
}
loki {
url => "http://loki:3100/loki/api/v1/push"
insecure_skip_verify => true
}
}