# 配置 filebeat 自动发现
filebeat.autodiscover:
providers:
- type: kubernetes
node: ${NODE_NAME}
hints.enabled: true
hints.default_config:
type: container
paths:
- /var/log/containers/*${data.kubernetes.container.id}.log
templates:
- condition.and:
- equals:
kubernetes.namespace: infra
- contains:
kubernetes.labels.app: skywalking
config:
- type: docker
containers.ids:
- "${data.kubernetes.container.id}"
multiline:
pattern: "^endpoints|^20"
negate: true
match: after
processors:
- add_cloud_metadata:
- add_host_metadata:
output.elasticsearch:
hosts: ['logging-es-master:9200']
网友评论