# Filebeat hint based autodiscover on Openshift/Kubernetes

**URL:** <https://discuss.elastic.co/t/filebeat-hint-based-autodiscover-on-openshift-kubernetes/263019>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 2, 2021, 5:50pm UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscover-on-openshift-kubernetes/263019 "2021-02-02T17:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [February 2, 2021, 5:50pm UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscover-on-openshift-kubernetes/263019/1 "2021-02-02T17:50:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 2, 2021, 5:50pm UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscover-on-openshift-kubernetes/263019/2 "2021-03-02T17:50:19Z")

</div>

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