mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2025-12-16 05:57:48 +01:00
25 lines
585 B
Plaintext
25 lines
585 B
Plaintext
input {
|
|
file {
|
|
path => "/transcendence/django.log" # Adjust this path to where the log file is stored
|
|
start_position => "beginning"
|
|
sincedb_path => "/dev/null"
|
|
codec => "json"
|
|
}
|
|
}
|
|
|
|
filter {
|
|
}
|
|
|
|
output {
|
|
elasticsearch {
|
|
hosts => ["https://es01:9200"]
|
|
user => "elastic"
|
|
password => "${ELASTIC_PASSWORD}"
|
|
ssl_enabled => true
|
|
ssl_certificate_authorities => "/usr/share/logstash/certs/ca/ca.crt"
|
|
ssl_verification_mode => "full"
|
|
index => "django-logs-%{+YYYY.MM.dd}"
|
|
}
|
|
stdout { codec => rubydebug } # Optional: For debugging purposes
|
|
}
|