This commit is contained in:
Adrien Audebert
2024-08-27 15:46:56 +02:00
13 changed files with 627 additions and 351 deletions

View File

@@ -1,13 +1,17 @@
input {
file {
path => "/transcendence/django.log" # Adjust this path to where the log file is stored
start_position => "beginning"
path => "/usr/share/logstash/logs/django.log"
start_position => "beginning"
sincedb_path => "/dev/null"
codec => "json"
}
}
filter {
json {
source => "message"
target => "json_message"
}
}
output {
@@ -20,5 +24,5 @@ output {
ssl_verification_mode => "full"
index => "django-logs-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug } # Optional: For debugging purposes
}
stdout { codec => rubydebug }
}