# Enabling X-Pack Security

**URL:** https://discuss.elastic.co/t/enabling-x-pack-security/336684
**Category:** Elasticsearch
**Created:** [June 22, 2023, 12:04pm UTC](https://discuss.elastic.co/t/enabling-x-pack-security/336684 "2023-06-22T12:04:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tomer\_zamir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomer_zamir/32/122595_2.png) [@tomer\_zamir](https://discuss.elastic.co/u/tomer_zamir)
#### Post date: [June 22, 2023, 12:04pm UTC](https://discuss.elastic.co/t/enabling-x-pack-security/336684/1 "2023-06-22T12:04:49Z")

</div>

Hi,

I just installed Elasticsearch on my ubuntu VM and I'm trying to run it for the first time but encountering errors.

I'm doing everything according to this tutorial: [digitalocean](https://www.digitalocean.com/community/tutorials/how-to-build-a-siem-with-suricata-and-elastic-stack-on-ubuntu-20-04#step-1-installing-elasticsearch-and-kibana)

I added these lines:

```auto
discovery.type: single-node
xpack.security.enabled: true

```

to the end of the elasticsearch.yml file, but it still says:

> Unexpected response code [500] from calling GET [http://127.0.0.1:9200/\_security/\_authenticate?pretty](http://127.0.0.1:9200/_security/_authenticate?pretty)  
> It doesn't look like the X-Pack security feature is enabled on this Elasticsearch node.  
> Please check if you have enabled X-Pack security in your elasticsearch.yml configuration file.  
> ERROR: X-Pack Security is disabled by configuration.

any ideas why?

---

<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 20, 2023, 12:05pm UTC](https://discuss.elastic.co/t/enabling-x-pack-security/336684/2 "2023-07-20T12:05:18Z")

</div>

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