mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2025-12-16 14:07:49 +01:00
22 lines
368 B
Plaintext
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}"
|
|
}
|
|
}
|