added conf files for k8s

This commit is contained in:
2025-12-18 15:34:28 +03:00
commit 514b401aae
28 changed files with 1406 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-config
namespace: elk-stack
data:
logstash.yml: |
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: ["http://elasticsearch:9200"]
pipeline.conf: |
input {
beats {
port => 5044
}
tcp {
port => 5000
codec => json
}
}
filter {
if [message] =~ /^\s*$/ {
drop { }
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "%{[source_type]}-%{+YYYY.MM.dd}"
}
stdout {
codec => rubydebug
}
}