File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,17 @@ spec:
1717 type: container
1818 paths:
1919 - /var/log/containers/*${data.kubernetes.container.id}.log
20+ ignore_older: 24h
2021 output.logstash:
2122 hosts: ["logstash-ls-beats.elastic:5044"]
2223 processors:
2324 - add_cloud_metadata: {}
2425 - add_host_metadata: {}
26+ - add_kubernetes_metadata:
27+ node: ${NODE_NAME}
28+ add_resource_metadata:
29+ deployment: true
30+ cronjob: true
2531 - add_fields:
2632 target: cluster
2733 fields:
Original file line number Diff line number Diff line change @@ -17,13 +17,20 @@ spec:
1717 cpu: 500m
1818 pipelines:
1919 - pipeline.id: main
20+ # Defaults are 125 / 50ms; raise both to batch more events per cycle (fewer ES bulks, slightly higher latency).
21+ pipeline.batch.size: 200
22+ pipeline.batch.delay: 150
2023 config.string: |
2124 input {
2225 beats {
2326 port => 5044
2427 }
2528 }
2629 filter {
30+ age {}
31+ if [@metadata][age] > 86400 {
32+ drop {}
33+ }
2734 grok {
2835 match => { "message" => "%{HTTPD_COMMONLOG}"}
2936 }
3946 password => "${UPSTREAM_ES_PASSWORD}"
4047 index => "{{ contexts ["plrl/cloud/observability" ].elastic .user }}-logs-%{+YYYY.MM.dd}"
4148 manage_template => false
49+ # Longer timeout while ES is under merge/ILM load (default 60s).
50+ timeout => 120
51+ retry_max_interval => 120
4252 }
4353 }
4454 services:
You can’t perform that action at this time.
0 commit comments