# Refresh data

**URL:** <https://discuss.elastic.co/t/refresh-data/258989>\
**Category:** Logstash\
**Created:** [December 17, 2020, 12:36pm UTC](https://discuss.elastic.co/t/refresh-data/258989 "2020-12-17T12:36:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [December 17, 2020, 12:36pm UTC](https://discuss.elastic.co/t/refresh-data/258989/1 "2020-12-17T12:36:15Z")

</div>

Hello,

I have a logstash configuration that is inserting the data from csv files from a specific folder. In the past two weeks I have made numerous changes and the data that I inserted is incomplete.

How do I drop everything from elasticsearch and instruct logstash to start over?

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 17, 2020, 1:05pm UTC](https://discuss.elastic.co/t/refresh-data/258989/2 "2020-12-17T13:05:09Z")

</div>

1. Stop Logstash
2. Stack Management -\> Index Management -\> Delete Index
3. Stack Management -\> Index Patterns -\> Delete Index Pattern
4. Start Logstash

This is assuming you allow Elastic to create the mapping and don't use any templates or ingest pipelines.

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [December 18, 2020, 7:33am UTC](https://discuss.elastic.co/t/refresh-data/258989/3 "2020-12-18T07:33:24Z")

</div>

Hi Aaron,

Tried this however logstash didn't wanted to import any previous files, only new ones.  
Also, all Dashboards needed to be re-created because new index had a different id

How can I instruct logstash to load the old files as well?

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [December 18, 2020, 9:03am UTC](https://discuss.elastic.co/t/refresh-data/258989/4 "2020-12-18T09:03:17Z")

</div>

I found out that I have to also delete sincedb file (which is the file that contains the list of already parsed files).

The problem with the index pattern id was solved also. I found that I can specify the id when I create the new index pattern.

---

<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:** [January 15, 2021, 9:03am UTC](https://discuss.elastic.co/t/refresh-data/258989/5 "2021-01-15T09:03:26Z")

</div>

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