# Tomcat log not detected after chnge the PATH on filebeat.yml

**URL:** <https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 3, 2016, 9:50am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267 "2016-01-03T09:50:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 3, 2016, 9:50am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/1 "2016-01-03T09:50:40Z")

</div>

my configuration like the below  
filebeat:  
prospectors:  
-  
paths:  
- /home/mohamed/localhost\_access\_log.2015-12-20.txt  
input\_type: syslog  
registry\_file: /var/lib/filebeat/registry  
output:  
elasticsearch:  
enabled: false  
hosts: ["localhost:9200"]  
logstash:  
hosts: ["[logs.e-masary.net:5044](http://logs.e-masary.net:5044)"]  
tls:  
certificate\_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]  
shipper:  
logging:  
files:  
rotateeverybytes: 10485760 # = 10MB

i change the path to new location to start monitor it but flebeat still sent log from /var/log/\*log  
any help

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 3, 2016, 12:44pm UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/2 "2016-01-03T12:44:39Z")

</div>

simply i need to monitor tomcat logs ?  
and i installed from this tutorial

> **[How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS 7 |...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7)**
>
> In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on CentOS 7—that is, Elasticsearch 2.1.x, Logstash 2.1.x, and Kibana 4.3.x. We will also show you how to configure it to gather and visualize the syslogs of your...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 3, 2016, 9:59pm UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/3 "2016-01-03T21:59:44Z")

</div>

Did you restart filebeat after changing the path?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 4, 2016, 7:39am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/4 "2016-01-04T07:39:58Z")

</div>

yes and logstash & elasticsearch

---

<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:** [January 4, 2016, 7:41am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/5 "2016-01-04T07:41:35Z")

</div>

Can you run filebeat with the -e -d "\*" flag and provide the output? In addition, it would be good to know the version of filebeat you are using and your OS.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 4, 2016, 7:52am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/7 "2016-01-04T07:52:26Z")

</div>

root@mohamed:~# /etc/filebeat/filebeat.yml -e -d '\*'  
/etc/filebeat/filebeat.yml: line 4: filebeat:: command not found  
/etc/filebeat/filebeat.yml: line 6: prospectors:: command not found  
/etc/filebeat/filebeat.yml: line 8: -: command not found  
/etc/filebeat/filebeat.yml: line 14: paths:: command not found  
/etc/filebeat/filebeat.yml: line 15: -: command not found  
/etc/filebeat/filebeat.yml: line 33: input\_type:: command not found  
/etc/filebeat/filebeat.yml: line 59: scan\_frequency:: command not found  
/etc/filebeat/filebeat.yml: line 132: registry\_file:: command not found  
/etc/filebeat/filebeat.yml: line 149: output:: command not found  
/etc/filebeat/filebeat.yml: line 152: elasticsearch:: command not found  
/etc/filebeat/filebeat.yml: line 153: enabled:: command not found  
/etc/filebeat/filebeat.yml: line 158: hosts:: command not found  
/etc/filebeat/filebeat.yml: line 231: logstash:: command not found  
/etc/filebeat/filebeat.yml: line 233: hosts:: command not found  
/etc/filebeat/filebeat.yml: line 246: tls:: command not found  
/etc/filebeat/filebeat.yml: line 248: certificate\_authorities:: command not found  
/etc/filebeat/filebeat.yml: line 294: shipper:: command not found  
/etc/filebeat/filebeat.yml: line 332: logging:: command not found  
/etc/filebeat/filebeat.yml: line 343: files:: command not found  
/etc/filebeat/filebeat.yml: line 352: rotateeverybytes:: command not found

---

<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:** [January 4, 2016, 7:55am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/8 "2016-01-04T07:55:20Z")

</div>

Below is the command. Above you tried to run your config file.

`filebeat -c /etc/filebeat/filbeat.yml -e -d "*"`

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 4, 2016, 8:17am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/11 "2016-01-04T08:17:19Z")

</div>

mohamed@mohamed:~$ filebeat -c /etc/filebeat/filebeat.yml -e -d "\*"  
2016/01/04 08:16:26.958219 beat.go:97: DBG Initializing output plugins  
2016/01/04 08:16:26.958249 geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths  
2016/01/04 08:16:26.958297 client.go:244: DBG ES Ping(url=http://localhost:9200, timeout=1m30s)  
2016/01/04 08:16:26.958593 client.go:249: DBG Ping request failed with: Head [http://localhost:9200](http://localhost:9200): dial tcp 127.0.0.1:9200: getsockopt: connection refused  
2016/01/04 08:16:26.958612 outputs.go:111: INFO Activated elasticsearch as output plugin.  
2016/01/04 08:16:27.037861 outputs.go:111: INFO Activated logstash as output plugin.  
2016/01/04 08:16:27.037901 publish.go:198: DBG create output worker: 0x0, 0xc8200c8eb0  
2016/01/04 08:16:27.037969 publish.go:198: DBG create output worker: 0x0, 0x0  
2016/01/04 08:16:27.037993 publish.go:235: DBG No output is defined to store the topology. The server fields might not be filled.  
2016/01/04 08:16:27.038037 publish.go:249: INFO Publisher name: mohamed  
2016/01/04 08:16:27.038183 async.go:95: DBG create bulk processing worker (interval=1s, bulk size=50)  
2016/01/04 08:16:27.038225 async.go:95: DBG create bulk processing worker (interval=1s, bulk size=200)  
2016/01/04 08:16:27.038269 beat.go:107: INFO Init Beat: filebeat; Version: 1.0.1  
2016/01/04 08:16:27.038915 beat.go:133: INFO filebeat sucessfully setup. Start running.  
2016/01/04 08:16:27.038944 registrar.go:66: INFO Registry file set to: /var/lib/filebeat/registry  
2016/01/04 08:16:27.038964 registrar.go:76: INFO Loading registrar data from /var/lib/filebeat/registry  
2016/01/04 08:16:27.038997 spooler.go:44: DBG Set idleTimeoutDuration to 5s  
2016/01/04 08:16:27.039018 crawler.go:38: DBG File Configs: [/home/mohamed/localhost\_access\_log.2015-12-20.txt]  
2016/01/04 08:16:27.039036 prospector.go:128: DBG Set ignore\_older duration to 24h0m0s  
2016/01/04 08:16:27.039052 prospector.go:128: DBG Set scan\_frequency duration to 10s  
2016/01/04 08:16:27.039065 prospector.go:128: DBG Set backoff duration to 1s  
2016/01/04 08:16:27.039078 prospector.go:128: DBG Set max\_backoff duration to 10s  
2016/01/04 08:16:27.039092 prospector.go:128: DBG Set partial\_line\_waiting duration to 5s  
2016/01/04 08:16:27.039104 crawler.go:58: DBG Waiting for 1 prospectors to initialise  
2016/01/04 08:16:27.039125 prospector.go:141: DBG Harvest path: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039154 prospector.go:207: DBG scan path /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039176 prospector.go:219: DBG Check file for harvesting: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039191 prospector.go:273: DBG Start harvesting unknown file: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039206 prospector.go:289: DBG Fetching old state of file to resume: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039224 prospector.go:306: DBG Skipping file (older than ignore older of 24h0m0s, 351h2m55.007260138s): /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039239 prospector.go:207: DBG scan path /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039254 prospector.go:219: DBG Check file for harvesting: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039268 prospector.go:341: DBG Update existing file for harvesting: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039280 prospector.go:383: DBG Not harvesting, file didn't change: /home/mohamed/localhost\_access\_log.2015-12-20.txt  
2016/01/04 08:16:27.039295 crawler.go:65: DBG No pending prospectors. Finishing setup  
2016/01/04 08:16:27.039308 crawler.go:78: INFO All prospectors initialised with 0 states to persist  
2016/01/04 08:16:27.039321 registrar.go:83: INFO Starting Registrar  
2016/01/04 08:16:27.039346 filebeat.go:122: INFO Start sending events to output  
2016/01/04 08:16:27.039411 spooler.go:77: INFO Starting spooler: spool\_size: 1024; idle\_timeout: 5s  
2016/01/04 08:16:29.539524 spooler.go:97: DBG Flushing spooler because of timemout. Events flushed: 0  
^C2016/01/04 08:16:34.698914 service.go:27: DBG Received sigterm/sigint, stopping  
2016/01/04 08:16:34.698938 registrar.go:129: INFO Stopping Registrar  
2016/01/04 08:16:34.698963 registrar.go:93: INFO Ending Registrar  
2016/01/04 08:16:34.698979 registrar.go:142: DBG Write registry file: /var/lib/filebeat/registry  
2016/01/04 08:16:34.699058 registrar.go:147: ERR Failed to create tempfile (/var/lib/filebeat/registry.new) for writing: open /var/lib/filebeat/registry.new: permission denied  
2016/01/04 08:16:34.699073 beat.go:143: INFO Cleaning up filebeat before shutting down.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 4, 2016, 9:04am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/12 "2016-01-04T09:04:21Z")

</div>

many thanks the problem was on the file, it's static file no changes has been don on this file when i copy a new file overwrite the old one the data come.

---

<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:** [January 4, 2016, 9:17am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/13 "2016-01-04T09:17:37Z")

</div>

Good to hear your were able to solve the problem.

---

<div class="post-metadata">

**Author:** ![Mohamed\_Ibrahim](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mohamed\_Ibrahim](https://discuss.elastic.co/u/Mohamed_Ibrahim)\
**Post date:** [January 4, 2016, 9:27am UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/14 "2016-01-04T09:27:10Z")

</div>

Thanks for your support 🙂

---

<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:** [July 5, 2017, 9:57pm UTC](https://discuss.elastic.co/t/tomcat-log-not-detected-after-chnge-the-path-on-filebeat-yml/38267/15 "2017-07-05T21:57:06Z")

</div>


