2022-11-17 09:25:25 -05:00
|
|
|
output.logstash:
|
2023-08-21 02:01:33 -04:00
|
|
|
hosts: ["{{ .LogstashHost }}"]
|
2022-11-17 09:25:25 -05:00
|
|
|
|
|
|
|
output.console:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
logging:
|
|
|
|
to_files: false
|
|
|
|
metrics.enabled: false
|
|
|
|
level: warning
|
2022-12-07 11:41:01 -05:00
|
|
|
|
|
|
|
filebeat.config:
|
|
|
|
inputs:
|
|
|
|
enabled: true
|
2023-08-21 02:01:33 -04:00
|
|
|
path: /usr/share/filebeat/inputs.yml
|
2022-12-07 11:41:01 -05:00
|
|
|
# reload.enabled: true
|
|
|
|
# reload.period: 10s
|
|
|
|
|
2023-03-21 06:27:46 -04:00
|
|
|
timestamp.precision: nanosecond
|
|
|
|
|
2022-12-07 11:41:01 -05:00
|
|
|
processors:
|
|
|
|
- dissect:
|
|
|
|
when:
|
|
|
|
regexp:
|
|
|
|
log.file.path: "^/var/log/pods/*"
|
|
|
|
tokenizer: "/var/log/pods/%{namespace}_%{pod_name}_%{uid}/%{container_name}/%{run_id}.log"
|
|
|
|
field: "log.file.path"
|
|
|
|
target_prefix: "kubernetes"
|
|
|
|
ignore_failure: true
|