# Logstash-filter-elasticsearch plugin - specify index to search

**URL:** <https://discuss.elastic.co/t/logstash-filter-elasticsearch-plugin-specify-index-to-search/58326>\
**Category:** Logstash\
**Created:** [August 18, 2016, 8:19am UTC](https://discuss.elastic.co/t/logstash-filter-elasticsearch-plugin-specify-index-to-search/58326 "2016-08-18T08:19:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirly\_Radco](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Shirly\_Radco](https://discuss.elastic.co/u/Shirly_Radco)\
**Post date:** [August 18, 2016, 8:19am UTC](https://discuss.elastic.co/t/logstash-filter-elasticsearch-plugin-specify-index-to-search/58326/1 "2016-08-18T08:19:01Z")

</div>

Hi,

I'm using for the first time the logstash-filter-elasticsearch plugin version 2.1.1.  
How can I specify which index to query?

What is the default for this? searching all indexes or only the current index?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 18, 2016, 9:35am UTC](https://discuss.elastic.co/t/logstash-filter-elasticsearch-plugin-specify-index-to-search/58326/3 "2016-08-18T09:35:43Z")

</div>

An `index` option for selecting the index(es) to search was added in v3.0.0 of the logstash-filter-elasticsearch filter. Prior to that I think it searched all indexes.

---

<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:42am UTC](https://discuss.elastic.co/t/logstash-filter-elasticsearch-plugin-specify-index-to-search/58326/4 "2017-07-06T04:42:52Z")

</div>


