38 lines
629 B
YAML
38 lines
629 B
YAML
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
|
|
}
|
|
}
|
|
|
|
|