# Filebeat not working for k8s ingress nginx controller

**URL:** <https://discuss.elastic.co/t/filebeat-not-working-for-k8s-ingress-nginx-controller/311259>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [August 3, 2022, 5:17am UTC](https://discuss.elastic.co/t/filebeat-not-working-for-k8s-ingress-nginx-controller/311259 "2022-08-03T05:17:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SABER\_Ye](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saber_ye/32/109170_2.png) [@SABER\_Ye](https://discuss.elastic.co/u/SABER_Ye)\
**Post date:** [August 3, 2022, 5:17am UTC](https://discuss.elastic.co/t/filebeat-not-working-for-k8s-ingress-nginx-controller/311259/1 "2022-08-03T05:17:06Z")

</div>

filebeat config:

```auto
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-config
  namespace: kube-system
  labels:
    k8s-app: filebeat
data:
  filebeat.yml: |-
    filebeat.inputs:
       - type: log
         enabled: true
         paths:
           - "/web_log/${NODE_NAME}/services/*.log"
           - "/web_log/${NODE_NAME}/sundries/*.log"

    # To enable hints based autodiscover, remove `filebeat.inputs` configuration and uncomment this:
    filebeat.autodiscover:
          providers:
            - type: kubernetes
              templates:
                - condition:
                    equals:
                      kubernetes.container.name: "controller"
                  config:
                     - module: nginx
                       access:
                        enabled: true
                        input:
                          type: container
                          paths:
                            - /var/lib/docker/containers/${data.kubernetes.container.id}/*.log

```

but kibana show logs as follows:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2fc0ed99e6ad7ab20e7d84182a8629fe7430bade.png)

can anyone help me?

---

<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:** [August 31, 2022, 5:17am UTC](https://discuss.elastic.co/t/filebeat-not-working-for-k8s-ingress-nginx-controller/311259/2 "2022-08-31T05:17:16Z")

</div>

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