# Kibana 6.5.1 won't start up after enabling xpack security in elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [December 4, 2018, 10:07am UTC](https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332 "2018-12-04T10:07:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wietse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wietse/32/35597_2.png) [@Wietse](https://discuss.elastic.co/u/Wietse)\
**Post date:** [December 4, 2018, 10:07am UTC](https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332/1 "2018-12-04T10:07:20Z")

</div>

Hi

I installed the Elasticsearch 6.5.1 trial platinum version because I want to use the X-Pack security functionality.

By default this is what I receive when running // GET /\_xpack/

> ```
> "security" : {
> "description" : "Security for the Elastic Stack",
> "available" : true,
> "enabled" : false
> }
> 
> ```

To enable security, I add // xpack.security.enabled: true  
to elasticsearch.yml

However, after doing this Kibana refuses to load.

> [warning][license][xpack]  
> License information from the X-Pack plugin could not be obtained from Elasticsearch for the [monitoring] cluster. [security\_exception] missing authentication token for REST request [/\_xpack], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } } :: {  
> "path":"/\_xpack",  
> "statusCode":401,  
> "response":"{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication token for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security\_exception","reason":"missing authentication token for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}","wwwAuthenticateDirective":"Basic realm="security" charset="UTF-8""}

Am I missing something? Is this not possible with the trial license?

Thank you for the answer!

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 4, 2018, 10:27am UTC](https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332/2 "2018-12-04T10:27:35Z")

</div>

Hi,

Now that you enabled security, you need to configure Kibana to authenticate to elasticsearch. The steps to do so are outlined in [our documentation](https://www.elastic.co/guide/en/elastic-stack-overview/current/security-getting-started.html)

---

<div class="post-metadata">

**Author:** ![Wietse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wietse/32/35597_2.png) [@Wietse](https://discuss.elastic.co/u/Wietse)\
**Post date:** [December 4, 2018, 10:43am UTC](https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332/3 "2018-12-04T10:43:54Z")

</div>

Thank you so much for the quick reply!  
I've been going through the documentation quite thoroughly but for some reason have missed that.

Cheers!

---

<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:** [January 1, 2019, 10:44am UTC](https://discuss.elastic.co/t/kibana-6-5-1-wont-start-up-after-enabling-xpack-security-in-elasticsearch/159332/4 "2019-01-01T10:44:00Z")

</div>

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