Hi guys,
I am experiencing some problems configuring autodiscover with filebeat modules. The filebeat modules don't seem to work, the logs are not being parsed at all. On the other hand autodiscover works without any problems. Do you have any idea, what am I doing wrong? You can see below my filebeat configuration.
filebeat.autodiscover:
providers:
- type: kubernetes
templates:
- condition:
and:
- equals:
kubernetes.namespace: dev
- contains:
kubernetes.labels.app: redis
config:
- module: redis
log:
enabled: true
input:
type: docker
fields:
category: app-redis-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
slowlog:
enabled: false
- condition:
and:
- equals:
kubernetes.namespace: logging
- contains:
kubernetes.labels.app: logstash
config:
- module: logstash
log:
enabled: true
input:
type: docker
fields:
category: app-logstash-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
slowlog:
enabled: false
- condition:
and:
- equals:
kubernetes.namespace: logging
- contains:
kubernetes.labels.app: kibana
config:
- module: kibana
log:
enabled: true
input:
type: docker
fields:
category: app-kibana-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
slowlog:
enabled: false
- condition:
and:
- equals:
kubernetes.namespace: logging
- contains:
kubernetes.labels.app: elasticsearch
config:
- module: elasticsearch
server:
enabled: true
input:
type: docker
fields:
category: app-elasticsearch-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
slowlog:
enabled: false
- condition:
and:
- equals:
kubernetes.namespace: dev
- contains:
kubernetes.labels.app: myapp
config:
- module: nginx
error:
enabled: true
input:
type: docker
containers.stream: stderr
fields:
category: myapp-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
access:
enabled: true
input:
type: docker
containers.stream: stdout
fields:
category: myapp-dev
fields_under_root: true
containers.ids:
- "${data.kubernetes.container.id}"
Thank you very much!