# How to index the data of file beat automatically

**URL:** <https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 15, 2019, 1:21pm UTC](https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913 "2019-04-15T13:21:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabil\_Mohamed](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Nabil\_Mohamed](https://discuss.elastic.co/u/Nabil_Mohamed)\
**Post date:** [April 15, 2019, 1:21pm UTC](https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913/1 "2019-04-15T13:21:28Z")

</div>

Dears ,

-please check the below configuration for the filebeat as below --\>

[root@nabilmohamed2c filebeat]# cat filebeat.yml  
filebeat.prospectors:

- type: log  
paths:
  - /var/log/logstash-tutorial.log  
output.logstash:  
hosts: ["localhost:5044"]

-so how can i make the elasticsearch is automatically updated with the new data for "logstash-tutorial.log" automatically instead i manually put the new data every day at /var/log/logstash-tutorial.log ?

thanks ,

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [April 15, 2019, 4:37pm UTC](https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913/2 "2019-04-15T16:37:10Z")

</div>

Hi @Nabil_Mohamed, is your logstash module in filebeat enabled? More information can be found in [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-logstash.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-logstash.html) for how to use filebeat to collect logstash logs.

---

<div class="post-metadata">

**Author:** ![Nabil\_Mohamed](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Nabil\_Mohamed](https://discuss.elastic.co/u/Nabil_Mohamed)\
**Post date:** [April 17, 2019, 12:20pm UTC](https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913/3 "2019-04-17T12:20:21Z")

</div>

thanks ,

---

<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 15, 2019, 12:20pm UTC](https://discuss.elastic.co/t/how-to-index-the-data-of-file-beat-automatically/176913/4 "2019-05-15T12:20:25Z")

</div>

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