# Underscore in index name makes it invisible for Kibana

**URL:** <https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032>\
**Category:** Kibana\
**Created:** [June 17, 2019, 9:42am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032 "2019-06-17T09:42:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![guerda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guerda/32/48215_2.png) [@guerda](https://discuss.elastic.co/u/guerda)\
**Post date:** [June 17, 2019, 9:42am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/1 "2019-06-17T09:42:19Z")

</div>

Hi!

I'm using Kibana 6.3.1 on AWS and currently facing the following problem:  
I have an index named with an underscore ("\_")in the middle. This should be allowed and ElasticSearch let me index and search in it.  
Unfortunately, Kibana does not find any index with an underscore in its name.

This blocks me from searching within Kibana or creating any visualization or dashboard, which is a pity.

I haven't found any documentation showing that this is not allowed.  
Can anybody explain me what's happening here and if that's intended behavior?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2019, 10:30am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/2 "2019-06-17T10:30:45Z")

</div>

when i try to create index starting with `_` i get the following exception from elasticsearch:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "invalid_index_name_exception",
        "reason": "Invalid index name [_test], must not start with '_', '-', or '+'",
        "index_uuid": "_na_",
        "index": "_test"
      }
    ],
    "type": "invalid_index_name_exception",
    "reason": "Invalid index name [_test], must not start with '_', '-', or '+'",
    "index_uuid": "_na_",
    "index": "_test"
  },
  "status": 400
}

```

seems that docs for 6.3 are still missing this information, but its included in the docs from 6.4 forward:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.4/indices-create-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/indices-create-index.html)

```auto
Cannot start with -, _, +

```

---

<div class="post-metadata">

**Author:** ![guerda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guerda/32/48215_2.png) [@guerda](https://discuss.elastic.co/u/guerda)\
**Post date:** [June 17, 2019, 10:54am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/3 "2019-06-17T10:54:17Z")

</div>

Hi Peter,

Thank you for your quick reply.

I saw the documentation that a starting underscore is not allowed.

In my case, the underscore is in the **middle** , which should be allowed. At least elastic search does not complain about that, stores and finds documents in that index.

It's only kibana which does not find the index at all if I try to create a matching index pattern.

In my case it's the index rapid\_dev. Even an index pattern like this won't match any index: rapid\*

Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2019, 11:17am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/4 "2019-06-17T11:17:27Z")

</div>

thats weird, we use underscores in our sample data indexes and it works fine.

is your index status green ?

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2019, 11:22am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/5 "2019-06-17T11:22:32Z")

</div>

just tried on my local install, created rapid\_dev index and index pattern and hit no issues.

must be something with your AWS instance ?

---

<div class="post-metadata">

**Author:** ![guerda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guerda/32/48215_2.png) [@guerda](https://discuss.elastic.co/u/guerda)\
**Post date:** [June 17, 2019, 11:24am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/6 "2019-06-17T11:24:17Z")

</div>

The index is green.

It seems to be a complete different issue, I'm sorry for the confusion.  
I tried to recreate it but was successful:

```
>curl -X PUT http://XXX.amazonaws.com/rapid_test
{"acknowledged":true,"shards_acknowledged":true,"index":"rapid_test"}

>curl -H "Content-Type: application/json" -X POST http://XXX.amazonaws.com/rapid_test/_doc/ -d "{ \"a\": \"b\" }"
{"_index":"rapid_test","_type":"_doc","_id":"zQwnZWsB2l6Fkq5Zk5T4","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}

>curl -H "Content-Type: application/json" -X GET http://XXX.amazonaws.com/rapid_test/_search
{"took":0,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"rapid_test","_type":"_doc","_id":"zQwnZWsB2l6Fkq5Zk5T4","_score":1.0,"_source":{ "a": "b" }}]}}

```

![grafik](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4e1c92404838d0856ee36e814718b6a3fa8b49c.png)

Is it because there are currently no documents in the index that Kibana hides it?

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2019, 11:40am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/7 "2019-06-17T11:40:13Z")

</div>

possibly, i did add documents when i was testing.

---

<div class="post-metadata">

**Author:** ![guerda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guerda/32/48215_2.png) [@guerda](https://discuss.elastic.co/u/guerda)\
**Post date:** [June 17, 2019, 11:49am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/8 "2019-06-17T11:49:55Z")

</div>

I did too. Thank you for your help and sorry for the confusion.

---

<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 15, 2019, 11:50am UTC](https://discuss.elastic.co/t/underscore-in-index-name-makes-it-invisible-for-kibana/186032/9 "2019-07-15T11:50:01Z")

</div>

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