下面的配置 不管怎么写都不对
filebeat.autodiscover.providers:
- type: kubernetes
node: ${NODE_NAME}
templates:
- condition:
and:
- equals:
kubernetes.namespace: "kube-system"
- equals:
kubernetes.namespace: "elastic"
- not:
- equals:
kubernetes.container.name: "fluentd"
filebeat.autodiscover.providers:
- type: kubernetes
node: ${NODE_NAME}
templates:
- condition:
and:
- or:
- equals:
kubernetes.namespace: "kube-system"
- equals:
kubernetes.namespace: "elastic"
- not:
- equals:
kubernetes.container.name: "fluentd"
WARN [conditions] conditions/equals.go:48 expected string but got type []string in equals
output.kafka:
enabled: true
hosts: ["1.1.1.1:9092"]
topics:
- topic: "logs_backend_dev"
when:
and:
- equals:
type: "backend"
- equals:
environment: "dev"
parttion.round_robin:
reacheble_only: false
required_acks: 1
commpression: gzip
max_message_bytes: 1000000
1 个回复
locatelli
赞同来自: wajika
这里的kubernetes.namespace 是一个array,所以不匹配