# Filebeat not reading logs 🤨

**URL:** <https://discuss.elastic.co/t/filebeat-not-reading-logs/301242>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 31, 2022, 6:04pm UTC](https://discuss.elastic.co/t/filebeat-not-reading-logs/301242 "2022-03-31T18:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tellz](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@Tellz](https://discuss.elastic.co/u/Tellz)\
**Post date:** [March 31, 2022, 6:04pm UTC](https://discuss.elastic.co/t/filebeat-not-reading-logs/301242/1 "2022-03-31T18:04:50Z")

</div>

Hi, I have a Kubernetes cluster, where in pods I should read logs of one application (Airflow) located in such structure: **/usr/local/airflow/logs/{jobname}/{jobname}/{timestamp}/1.log** (example: **/usr/local/airflow/logs/somejob/somejob/2022-03-31T17:21:44.563123+00:00/1.log** ).  
Seems easy, I just need to use Kubernetes autodiscover with this template of path **/usr/local/airflow/logs/\*\*/\*.log** , but in filebeat logs I see that harvester not starting reading files located there. My filebeat.yml:

```auto
filebeat.autodiscover:
  providers:
    - type: kubernetes
      templates:
        - condition:
            equals.kubernetes.container.name: airflow-web
          config:
            - type: container
              paths:
                - /usr/local/airflow/logs/**/*.log
              tail_files: true
output.logstash:
  hosts: ["logstash:22004"]

```

Funny fact that my filebeat cant read files located in **/usr/local/airflow/logs/somejob/somejob/2022-03-31T17:21:44.563123+00:00/1.log** but when I'm trying to read containers logs in path **/var/log/containers/\*-${data.kubernetes.container.id}.log** I can see containers logs in Kibana, so this problem is not with logstash output. But I really need logs in **/usr/local/airflow/logs/somejob/somejob/2022-03-31T17:21:44.563123+00:00/1.log**

Maybe I missed something 🧐 Thanks in advance 😉 P.S. Container name is airflow-web (that's for sure).

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 5, 2022, 12:47pm UTC](https://discuss.elastic.co/t/filebeat-not-reading-logs/301242/2 "2022-04-05T12:47:29Z")

</div>

Could you please share the debug logs of Filebeat?

---

<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:** [May 3, 2022, 2:48pm UTC](https://discuss.elastic.co/t/filebeat-not-reading-logs/301242/3 "2022-05-03T14:48:21Z")

</div>

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