# Can anyone help me how can i set authentication in elastic search 6.2

**URL:** <https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 25, 2019, 12:00pm UTC](https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823 "2019-02-25T12:00:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anush308](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@anush308](https://discuss.elastic.co/u/anush308)\
**Post date:** [February 25, 2019, 12:00pm UTC](https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823/1 "2019-02-25T12:00:59Z")

</div>

currently my elasticsearch is giving full access to all user who hits on my ip on port 9200 im new to this can anyone help me how can i fix this issue and create an authentictaion so that it ask for username and password for curl request

---

<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:** [February 25, 2019, 12:26pm UTC](https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823/2 "2019-02-25T12:26:51Z")

</div>

You need to activate security feature for that. It requires a gold license at least (which is commercial) but you can activate a trial from Kibana (or from API) for 30 days.

---

<div class="post-metadata">

**Author:** ![anush308](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@anush308](https://discuss.elastic.co/u/anush308)\
**Post date:** [February 25, 2019, 12:39pm UTC](https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823/3 "2019-02-25T12:39:22Z")

</div>

is there any other option by which i can secure my data

---

<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:** [March 25, 2019, 12:39pm UTC](https://discuss.elastic.co/t/can-anyone-help-me-how-can-i-set-authentication-in-elastic-search-6-2/169823/4 "2019-03-25T12:39:25Z")

</div>

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