Initial commit

This commit is contained in:
2025-09-14 01:57:12 +05:00
commit 7bb2955c80
3 changed files with 76 additions and 0 deletions

18
logstash/logstash.conf Normal file
View File

@ -0,0 +1,18 @@
input {
tcp {
port => 5044
codec => json_lines
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
user => "logstash_main"
password => "logstashpass"
index => "logs-%{+YYYY.MM.dd}"
}
stdout {
codec => rubydebug
}
}

4
logstash/logstash.yml Normal file
View File

@ -0,0 +1,4 @@
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["http://elasticsearch:9200"]
xpack.monitoring.elasticsearch.username: "logstash_system"
xpack.monitoring.elasticsearch.password: "logstashpass"