# Filebeat on kubernetes not pulling logs from all pods

**URL:** <https://discuss.elastic.co/t/filebeat-on-kubernetes-not-pulling-logs-from-all-pods/239379>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 30, 2020, 11:24pm UTC](https://discuss.elastic.co/t/filebeat-on-kubernetes-not-pulling-logs-from-all-pods/239379 "2020-06-30T23:24:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyesmoker](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@eyesmoker](https://discuss.elastic.co/u/eyesmoker)\
**Post date:** [June 30, 2020, 11:24pm UTC](https://discuss.elastic.co/t/filebeat-on-kubernetes-not-pulling-logs-from-all-pods/239379/1 "2020-06-30T23:24:52Z")

</div>

Hi,  
I am running file beat as daemonset on the k8s. It is pulling logs from few pods and not all. Here is the simple config used.

```auto
filebeat.autodiscover:
      providers:
        - type: kubernetes
          node: ${NODE_NAME}
          hints.enabled: true
          hints.default_config:
            type: container
            paths:
              - /var/lib/docker/containers/${data.kubernetes.container.id}/*.log

    filebeat.config.modules:
      path: ${path.config}/modules.d/*.yml
    filebeat.modules:
    - module: kafka
 
    processors:
      - add_cloud_metadata:
      - add_host_metadata:
              
    output.elasticsearch:
      host: '${NODE_NAME}'
      hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'
    setup.kibana:
      host: 'kibana-kibana.default.svc.cluster.local:5601'
    setup.dashboards.enabled: true 

```

Any help is appreciated.  
Filebeat version: 7.7.0

When I looked at /var/lib/docker/containers/ under filebeat (kubectl exec -it filebeat-filebeat-9phcf -- ls -l /var/lib/docker/containers) , not every pod log is in there. Is filebeat mounting as expected. What else I could check.

Regards

---

<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:** [July 29, 2020, 1:24am UTC](https://discuss.elastic.co/t/filebeat-on-kubernetes-not-pulling-logs-from-all-pods/239379/2 "2020-07-29T01:24:53Z")

</div>

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