# ElasticSearch returns "index not found error" for an index that exists

**URL:** <https://discuss.elastic.co/t/elasticsearch-returns-index-not-found-error-for-an-index-that-exists/335658>\
**Category:** Elasticsearch\
**Created:** [June 9, 2023, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-returns-index-not-found-error-for-an-index-that-exists/335658 "2023-06-09T20:36:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RA31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ra31/32/122081_2.png) [@RA31](https://discuss.elastic.co/u/RA31)\
**Post date:** [June 9, 2023, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-returns-index-not-found-error-for-an-index-that-exists/335658/1 "2023-06-09T20:36:06Z")

</div>

I have an index pattern "barney", which shows on Kibana Management screen and on Discover. But when I hit the **\_cat/indices** API, it does not show the index pattern in the list of indices returned.

When triggering **barney/\_search** , it returns this error

```auto
    {
    "error": {
        "root_cause": [
            {
                "type": "index_not_found_exception",
                "reason": "no such index",
                "resource.type": "index_or_alias",
                "resource.id": "<redacted-uuid>",
                "index_uuid": "_na_",
                "index": "<redacted-uuid>"
            }
        ],
        "type": "index_not_found_exception",
        "reason": "no such index",
        "resource.type": "index_or_alias",
        "resource.id": "<redacted-uuid>",
        "index_uuid": "_na_",
        "index": "<redacted-uuid>"
    },
    "status": 404

```

If the index exists on Management in Kibana, why does it return an error with the API requests?  
The Kibana version being used is 6.4.3.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 9, 2023, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-returns-index-not-found-error-for-an-index-that-exists/335658/2 "2023-06-09T21:08:53Z")

</div>

Hello and welcome,

Please share what you are seeing in Kibana, share an screenshot that shows the indice exists.

Also, share the return you get when running `GET _cat/indices` in dev tools.

---

<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 7, 2023, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-returns-index-not-found-error-for-an-index-that-exists/335658/3 "2023-07-07T21:08:55Z")

</div>

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