This commit is contained in:
2024-09-17 12:16:31 +02:00
parent 00cccbfa86
commit dd907cd184
99 changed files with 7854 additions and 0 deletions

28
config/logstash.conf Normal file
View File

@@ -0,0 +1,28 @@
input {
file {
path => "/usr/share/logstash/logs/django.log"
start_position => "beginning"
sincedb_path => "/dev/null"
codec => "json"
}
}
filter {
json {
source => "message"
target => "json_message"
}
}
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 }
}

View File