# Logstash reads my entry 2 times (or more)

**URL:** <https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039>\
**Category:** Logstash\
**Created:** [September 10, 2015, 2:38pm UTC](https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039 "2015-09-10T14:38:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hornov](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hornov](https://discuss.elastic.co/u/Hornov)\
**Post date:** [September 10, 2015, 2:38pm UTC](https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039/1 "2015-09-10T14:38:03Z")

</div>

When I use elasticsearch input, sometimes logstash refers several times my result in succession.  
I don't understand why.  
Sometimes it works, sometimes not and nevertheless neither my configuration nor my data changed.

---

<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 11, 2015, 6:55am UTC](https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039/2 "2015-09-11T06:55:52Z")

</div>

Providing your config as well as what versions of things you are using would be helpful.

---

<div class="post-metadata">

**Author:** ![Hornov](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hornov](https://discuss.elastic.co/u/Hornov)\
**Post date:** [September 11, 2015, 8:44am UTC](https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039/3 "2015-09-11T08:44:23Z")

</div>

I use logstash 1.5.4 and logstash-filter-elasticsearch 0.1.6 and my conf files look like :  
input {  
elasticsearch {  
hosts =\> ["my host"]  
index =\> "my index"  
query =\> 'my query 1'  
type =\> "my type 1"  
scan =\> false  
}  
}  
filter {  
elasticsearch {  
hosts =\> ["my host/my index/my type 2"]  
query =\> "my query 2"  
fields =\> ["my fields:my fields"]  
}  
...

---

<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, 5:29am UTC](https://discuss.elastic.co/t/logstash-reads-my-entry-2-times-or-more/29039/4 "2017-07-06T05:29:26Z")

</div>


