# Old index getting new log data

**URL:** <https://discuss.elastic.co/t/old-index-getting-new-log-data/207180>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 8, 2019, 10:30pm UTC](https://discuss.elastic.co/t/old-index-getting-new-log-data/207180 "2019-11-08T22:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehak\_Bhargava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehak_bhargava/32/54750_2.png) [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)\
**Post date:** [November 8, 2019, 10:30pm UTC](https://discuss.elastic.co/t/old-index-getting-new-log-data/207180/1 "2019-11-08T22:30:45Z")

</div>

After running this command, ./filebeat -e --modules system,nginx,mysql

This Index was created

```auto
yellow filebeat-7.4.0-2019.11.08-000001 open lMcCHhWuT9ecTfsI4OyGEA 1 1 3982 0 676kb 2019-11-08T20:06:41.949Z

```

But now if I run the filebeats again, no new index is created. My older filebeat index is getting all new log files I am sending.

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [November 11, 2019, 3:46pm UTC](https://discuss.elastic.co/t/old-index-getting-new-log-data/207180/2 "2019-11-11T15:46:48Z")

</div>

Hi @Mehak_Bhargava,

do you have [index](https://www.elastic.co/guide/en/beats/filebeat/7.4/elasticsearch-output.html#index-option-es) configured in your Filebeat config?

I would expect any log with a timestamp that matches the date in the index name to go into the existing index. By default there would be one index per day and all logs from that day would go into the same index.

---

<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:** [December 9, 2019, 3:46pm UTC](https://discuss.elastic.co/t/old-index-getting-new-log-data/207180/3 "2019-12-09T15:46:50Z")

</div>

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