Skip to content

Instantly share code, notes, and snippets.

@chamilad
Created September 21, 2019 05:48
Show Gist options
  • Save chamilad/9e6e6eaf92c7cff5bcef400cbea31b9b to your computer and use it in GitHub Desktop.
Save chamilad/9e6e6eaf92c7cff5bcef400cbea31b9b to your computer and use it in GitHub Desktop.
Minimal Filebeat Config for K8s
filebeat.inputs:
- type: container
paths:
- /var/log/containers/*.log
processors:
- add_kubernetes_metadata:
in_cluster: true
processors:
- add_cloud_metadata:
- add_host_metadata:
output.logstash:
hosts: ["logstash.default.svc.cluster.local:5044"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment