# Filebeat can not get correct logs

**URL:** <https://discuss.elastic.co/t/filebeat-can-not-get-correct-logs/286456>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 12, 2021, 9:13am UTC](https://discuss.elastic.co/t/filebeat-can-not-get-correct-logs/286456 "2021-10-12T09:13:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chen\_xa](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Chen\_xa](https://discuss.elastic.co/u/Chen_xa)\
**Post date:** [October 12, 2021, 9:13am UTC](https://discuss.elastic.co/t/filebeat-can-not-get-correct-logs/286456/1 "2021-10-12T09:13:51Z")

</div>

I created a yaml file to deploy filebeat in my cluster. And I configured the right container log path. But when I see the filebeat logs I found out that all containers' ID is not same with the path.

 ![Screen Shot 2021-10-12 at 17.12.07](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1d82ec44c97c00cf1758262c8a82960d5b48fc88.png)

Here is my yaml:

 ![Screen Shot 2021-10-12 at 17.13.27](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb9c3a9dd2fe741b1e1fc81d4d7bede8743c8d2a.png)  
As a result, I can't get the logs at all.

---

<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:** [November 9, 2021, 11:14am UTC](https://discuss.elastic.co/t/filebeat-can-not-get-correct-logs/286456/2 "2021-11-09T11:14:37Z")

</div>

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