# Filebeat 6.2.2 doesn't harvest .txt files!

**URL:** <https://discuss.elastic.co/t/filebeat-6-2-2-doesnt-harvest-txt-files/122457>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 5, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-doesnt-harvest-txt-files/122457 "2018-03-05T08:28:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilia/32/60042_2.png) [@Ilia](https://discuss.elastic.co/u/Ilia)\
**Post date:** [March 5, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-6-2-2-doesnt-harvest-txt-files/122457/1 "2018-03-05T08:28:22Z")

</div>

I'm trying to ship `tomcat` access logs using filebeat. The problem is that filebeat doesn't read log messages. I've tested many things and finally found out the problem is caused by the files suffix!!!

```
- type: log
  enabled: true
  paths:
    - C:\foo\bar\localhost_access_log.2018-04-30.txt

```

When I change the suffix to `.log` filebeat ships messages. I know this sounds silly but really what is happen!!!

Any thoughts?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 11, 2018, 1:13pm UTC](https://discuss.elastic.co/t/filebeat-6-2-2-doesnt-harvest-txt-files/122457/2 "2018-03-11T13:13:46Z")

</div>

The file suffix should not have any effect as filebeat does not do anyhting with it. Could you enable debug logging and share the output when you run it with `.txt`? I assume you renamed it in the config and the file itself.

---

<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:** [April 8, 2018, 1:14pm UTC](https://discuss.elastic.co/t/filebeat-6-2-2-doesnt-harvest-txt-files/122457/3 "2018-04-08T13:14:26Z")

</div>

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