# Help me to Activate X-Pack security on Elasticsearch 5.6.15

**URL:** <https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 21, 2019, 3:09pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040 "2019-05-21T15:09:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitmjadav](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@amitmjadav](https://discuss.elastic.co/u/amitmjadav)\
**Post date:** [May 21, 2019, 3:09pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/1 "2019-05-21T15:09:42Z")

</div>

Hi,

I have installed elasticsearch 5.6.15 on one of my node. I want to secure my elasticsearch. I have also installed the same version of x-pack plugin. and I have chenged the following in elasticsearch.yml file

xpack.security.enabled: true  
action.auto\_create\_index: .security,.monitoring\*,.watches,.triggered\_watches,.watcher-history\*,.ml\*

But It is not asking password while i am interacting with API like cluster health, node detail, indices, etc...  
How can i protect it with password. While accessing any API i want user to give password...

Please help me in this.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2019, 3:30pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/2 "2019-05-21T15:30:43Z")

</div>

With 5.6.15, you need to have a trial or commercial license.

From 6.8.0 and 7.1.0, it's available for free in the basic license.  
I'd suggest you to upgrade first, then activate it.

---

<div class="post-metadata">

**Author:** ![amitmjadav](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@amitmjadav](https://discuss.elastic.co/u/amitmjadav)\
**Post date:** [May 21, 2019, 3:34pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/3 "2019-05-21T15:34:28Z")

</div>

Thanks for feedback,

But our need is on this version only. If we go to latest version there is huge change in code. and we I am first trying on trial version and plan to purchase license. So please help me. When i see in elasticsearch log file it shows trial but accessing API it is directly accessible without asking password.. our business needs authentication to elasticsearch... So please help me.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2019, 3:51pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/4 "2019-05-21T15:51:15Z")

</div>

Did you read and follow the steps in this guide?

- [https://www.elastic.co/guide/en/x-pack/5.6/installing-xpack.html](https://www.elastic.co/guide/en/x-pack/5.6/installing-xpack.html)
- [https://www.elastic.co/guide/en/x-pack/5.6/xpack-security.html](https://www.elastic.co/guide/en/x-pack/5.6/xpack-security.html)

Did you restart the nodes? What are elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![amitmjadav](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@amitmjadav](https://discuss.elastic.co/u/amitmjadav)\
**Post date:** [May 21, 2019, 4:21pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/5 "2019-05-21T16:21:17Z")

</div>

I have follow the same steps and I have not created elasticsearch as service. I am running it as .bat file.. So you can say I have closed and open that bat file ... So we can say restarted the node..

In log file it also shows me x-pack plugin loaded.  
But what is the issue i am confused why it is not asking for password while interacting with API...

So can you please help me deeper....Please

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2019, 9:50pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/6 "2019-05-21T21:50:32Z")

</div>

Can you share the logs?

---

<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 18, 2019, 9:50pm UTC](https://discuss.elastic.co/t/help-me-to-activate-x-pack-security-on-elasticsearch-5-6-15/182040/7 "2019-06-18T21:50:49Z")

</div>

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