Connecting Logstash to Elasticsearch

This commit is contained in:
2025-10-22 18:52:34 +02:00
parent 81cea46d0a
commit 5b5e468a54
2 changed files with 20 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ metadata:
name: logstash-config
namespace: app-notifications
data:
logstash.yml: |
http.host: "0.0.0.0"
xpack.monitoring.enabled: false
logstash.conf: |
input {
beats {
@@ -14,5 +18,11 @@ data:
if [level] == "DEBUG" { drop {} }
}
output {
stdout { codec => json } # for testing
elasticsearch {
hosts => ["http://elasticsearch:9200"]
user => "elastic"
password => "${ELASTIC_PASSWORD}"
ssl_verification_mode => none
index => "app-notifications-%{+YYYY.MM.dd}"
}
}