# Logstash Select All in Elasticsearch Input missing documents

**URL:** <https://discuss.elastic.co/t/logstash-select-all-in-elasticsearch-input-missing-documents/76349>\
**Category:** Logstash\
**Created:** [February 24, 2017, 5:48am UTC](https://discuss.elastic.co/t/logstash-select-all-in-elasticsearch-input-missing-documents/76349 "2017-02-24T05:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [February 24, 2017, 5:48am UTC](https://discuss.elastic.co/t/logstash-select-all-in-elasticsearch-input-missing-documents/76349/1 "2017-02-24T05:48:02Z")

</div>

I did the following

input  
{  
elasticsearch  
{  
..............  
query =\> '{"query": { "match\_all": {} }}'  
}  
}

After running the script I noticed that the number of documents in the target index is lesser than the number of documents in the original source 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:** [March 24, 2017, 5:48am UTC](https://discuss.elastic.co/t/logstash-select-all-in-elasticsearch-input-missing-documents/76349/2 "2017-03-24T05:48:27Z")

</div>

Closed on March 24, 2017, 5:48am UTC

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