# Filebeat only reads my local machine log files

**URL:** <https://discuss.elastic.co/t/filebeat-only-reads-my-local-machine-log-files/288119>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 1, 2021, 8:41am UTC](https://discuss.elastic.co/t/filebeat-only-reads-my-local-machine-log-files/288119 "2021-11-01T08:41:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amrbayoumy89](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Amrbayoumy89](https://discuss.elastic.co/u/Amrbayoumy89)\
**Post date:** [November 1, 2021, 8:41am UTC](https://discuss.elastic.co/t/filebeat-only-reads-my-local-machine-log-files/288119/1 "2021-11-01T08:41:10Z")

</div>

Hello Dears,

I started to install Elasticsearch, Filebeat and Kibana on my local machine. I have a written text file for Tomcat logs called "tomcatServerlogs.log" and I entered its path in filebeat.yml

When I switch to Kibana I found that Filebeat only collects logs from my local machine and doesn't harvester tomcat logs. Please check the filebeat.yml configuration file and let me know the drawbacks.

 ![Screenshot from 2021-11-01 10-38-25](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4e6968f1dff879fe3ffaaa3a11dba2eb446bad86.png)

In the tomcat log file there is a keyword "Response time out" and I want to filter by this exception. How can I add this to the configuration file?. example here below

 ![Screenshot from 2021-11-01 10-50-22](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e5efa5a758972a596a874827e9a2a35c47c4990b.png)

---

<div class="post-metadata">

**Author:** ![riferrei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riferrei/32/104867_2.png) [@riferrei](https://discuss.elastic.co/u/riferrei)\
**Post date:** [November 1, 2021, 2:14pm UTC](https://discuss.elastic.co/t/filebeat-only-reads-my-local-machine-log-files/288119/2 "2021-11-01T14:14:51Z")

</div>

Hi Amr,

For Filebeat to be able to collect, parse correctly, and ship Tomcat logging, the Tomcat module needs to be enabled in the configuration. Here is more information about this module:

> **[Tomcat module | Filebeat Reference \[7.15\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-tomcat.html)**

In your Filebeat configuration, there is a harvester configured to pull logs from two locations, but they won't necessarily parse it as Tomcat logs if the respective module is enabled. I recommend removing the Tomcat log configuration from the main Filebeat configuration and configuring it in the module — available at `modules.d/tomcat.yml`.

— @riferrei

---

<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 29, 2021, 4:15pm UTC](https://discuss.elastic.co/t/filebeat-only-reads-my-local-machine-log-files/288119/3 "2021-11-29T16:15:19Z")

</div>

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