ft_transcendence/logstash.conf
Adrien Audebert 4b82bbbfd1 in progress
2024-08-07 15:30:11 +02:00

22 lines
368 B
Plaintext

input {
file {
path => "/var/lib/docker/containers/*/*.log"
start_position => "beginning"
sincedb_path => "/usr/share/logstash/data/sincedb"
type => "docker"
codec => "json"
}
}
filter {
}
output {
elasticsearch {
hosts => ["http://es01:9200"]
index => "docker-logs-%{+YYYY.MM.dd}"
user=> "${ELASTIC_USER}"
password=> "${ELASTIC_PASSWORD}"
}
}