# How Logstash reparse Elasticsearch input

**URL:** <https://discuss.elastic.co/t/how-logstash-reparse-elasticsearch-input/60696>\
**Category:** Logstash\
**Created:** [September 16, 2016, 11:05am UTC](https://discuss.elastic.co/t/how-logstash-reparse-elasticsearch-input/60696 "2016-09-16T11:05:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://discuss.elastic.co/u/Abhishek)\
**Post date:** [September 16, 2016, 11:05am UTC](https://discuss.elastic.co/t/how-logstash-reparse-elasticsearch-input/60696/1 "2016-09-16T11:05:52Z")

</div>

Hi All,

Suppose I have elasticsearch index\_1 with some data. I've created a new index index\_2 and created a logstash pipeline to replicate data from index\_1 to index\_2. After having all data in index\_2, pipeline is closed.

Now I've inserted new documents in index\_1, and run logstash pipeline again. What will happen now,

1. will it replicate all the data from index\_1?

2. or only newly created documents will be considered? if yes, how logstash keep tracking of documents. I can see 'timestamp' added in logs, but not able to understand the behaviour.

Thanks,  
Abhishek

---

<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:** [September 17, 2016, 5:50am UTC](https://discuss.elastic.co/t/how-logstash-reparse-elasticsearch-input/60696/2 "2016-09-17T05:50:28Z")

</div>

It will do the first one unless you put a query that's associated with the timeframe in the input.

---

<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 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/how-logstash-reparse-elasticsearch-input/60696/3 "2017-07-06T04:38:07Z")

</div>


