I'm an Elastic Cloud subscriber. We are standing up an EKS cluster on AWS, but would like to have filebeat exist outside of Kubernetes, directly on the worker node.
I'm having some trouble understanding what to put in the kube_config setting as there isn't a kube_config on the worker node that I know of and certainly not at ${HOME}/.kube/config
Here is my filebeat.inputs
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/*.log
- type: docker
combine_partial: true
containers:
path: "/var/lib/docker/containers"
ids:
- "*"
json.keys_under_root: true
json.add_error_key: true
tags:
- "container_logs_nonprod"
- "eks_services"
processors:
- add_kubernetes_metadata:
in_cluster: false
host: i-[REDACTED]
kube_config: ${HOME}/.kube/config