# Security index is unavailable

**URL:** <https://discuss.elastic.co/t/security-index-is-unavailable/274731>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 2, 2021, 9:30am UTC](https://discuss.elastic.co/t/security-index-is-unavailable/274731 "2021-06-02T09:30:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [June 2, 2021, 9:30am UTC](https://discuss.elastic.co/t/security-index-is-unavailable/274731/1 "2021-06-02T09:30:45Z")

</div>

Hi there,  
I have installed a single node node on linux (role: monitoring node) (v. 7.8.1 // elastisearch + Kibana + redis)  
If in the elasticsearch.yml I give this:  
xpack.security.enabled: false  
then for example a curl for health with the elastic or the kibana user works fine.  
There is an active license installed.  
elected-as-master has joined noids - all is well

As soon as I put this in:  
xpack.security.enabled: true  
after restart troubles do start and elasticsearch tells me:  
security index is unavailable  
And yes: there is no such index:  
green open .monitoring-es-7-2021.06.02 1a0nXAroRW-UP5AO-g\_A\_w 1 0 473 78 910.3kb 910.3kb  
green open .triggered\_watches f-bbjo5NTRu29ab2P5ZVVw 1 0 0 0 8.8kb 8.8kb  
green open .monitoring-alerts-7 I\_378dIqTfmTbBmvX5e5Hw 1 0 1 0 6.2kb 6.2kb  
green open .watches Uv3DWVgoRJKnvMfv5jlSjg 1 0 6 12 251.2kb 251.2kb

I also miss the .kibana index (since kibana refuses to start).  
Now a curl on health gives:  
**unable to authenticate user [elastic]**  
So: why this behaviour? How can I solve this situation? The security index needs to be created, but this is normally done automatically!

cheers  
Stefano

---

<div class="post-metadata">

**Author:** ![Anatolij](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Anatolij](https://discuss.elastic.co/u/Anatolij)\
**Post date:** [June 2, 2021, 9:38am UTC](https://discuss.elastic.co/t/security-index-is-unavailable/274731/2 "2021-06-02T09:38:40Z")

</div>

Did you used [elasticsearch-setup-passwords](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-passwords.html)? If you would use a multi node cluster, i would also highly recommend to use TLS for internode communication, I had some problems when not using it.

---

<div class="post-metadata">

**Author:** ![smm](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@smm](https://discuss.elastic.co/u/smm)\
**Post date:** [June 2, 2021, 10:42am UTC](https://discuss.elastic.co/t/security-index-is-unavailable/274731/3 "2021-06-02T10:42:51Z")

</div>

...it is only a one-node cluster.  
A used the mentioned script and the results where positive - thanks!  
cheers  
Stefano

---

<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:** [June 30, 2021, 10:43am UTC](https://discuss.elastic.co/t/security-index-is-unavailable/274731/4 "2021-06-30T10:43:26Z")

</div>

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