Filebeat hint based autodiscover on Openshift/Kubernetes

Hi folks,

I am using following filebeat configuration (7.10). Filebeat is running on openshift:

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

processors:
  - add_cloud_metadata:
  - add_host_metadata:

                   
output.logstash:
  hosts: ['${LOGSTASH_HOST:${LOGSTASH_PORT}']
  ssl.certificate_authorities: [ "/etc/certs/ca.crt"]
  ssl.key: "/etc/certs/filebeat.key"
  ssl.certificate: "/etc/certs/filebeat.crt"
  ssl.key_passphrase: ${CERT_PASS}

Filebeat reports following error:

2021-02-02T17:44:00.233Z	ERROR	[autodiscover]	autodiscover/autodiscover.go:209	Auto discover config check failed for config '{
  "docker-json": {
    "cri_flags": true,
    "format": "auto",
    "partial": true,
    "stream": "all"
  },
  "symlinks": true,
  "type": "container"
}', won't start runner: each input must have at least one path defined

What am I doing wrong?

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.