# Query on one index pattern - Closed Index exception on another index

**URL:** <https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467>\
**Category:** Elasticsearch\
**Created:** [March 25, 2016, 4:52pm UTC](https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467 "2016-03-25T16:52:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [March 25, 2016, 4:52pm UTC](https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467/1 "2016-03-25T16:52:00Z")

</div>

Hi,

We are running a regular query to retrieve data from some index pattern, say

> logstash-test-\*

I get an exception:

> IndexClosedException [logstash-abc-2016.01.01] closed  
> status: 403

This is a bit weird because in query I specify different index pattern and I get a closed index exception on different index.  
What could be the possible reason behind it?

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [March 26, 2016, 7:55pm UTC](https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467/2 "2016-03-26T19:55:37Z")

</div>

I can't reproduce this.

Does the index logstash-abc-2016.01.01 have an alias matching the index pattern?

If not, what is the complete actual search you are running?

---

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [March 28, 2016, 4:02pm UTC](https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467/3 "2016-03-28T16:02:57Z")

</div>

> [@Glen\_Smith](#):
>
> Does the index logstash-abc-2016.01.01 have an alias matching the index pattern

Yes, I found a few indices have been given alias matching this index pattern by mistake.

Thanks for your help.

---

<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 5, 2017, 11:04pm UTC](https://discuss.elastic.co/t/query-on-one-index-pattern-closed-index-exception-on-another-index/45467/4 "2017-07-05T23:04:37Z")

</div>


