# Enable security by setting \[xpack.security.enabled\] to \[true\] in the elasticsearch.yml file and restart the node

**URL:** <https://discuss.elastic.co/t/enable-security-by-setting-xpack-security-enabled-to-true-in-the-elasticsearch-yml-file-and-restart-the-node/228912>\
**Category:** Elasticsearch\
**Created:** [April 20, 2020, 6:06pm UTC](https://discuss.elastic.co/t/enable-security-by-setting-xpack-security-enabled-to-true-in-the-elasticsearch-yml-file-and-restart-the-node/228912 "2020-04-20T18:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![opensourcengineer](https://avatars.discourse-cdn.com/v4/letter/o/ecccb3/32.png) [@opensourcengineer](https://discuss.elastic.co/u/opensourcengineer)\
**Post date:** [April 20, 2020, 6:06pm UTC](https://discuss.elastic.co/t/enable-security-by-setting-xpack-security-enabled-to-true-in-the-elasticsearch-yml-file-and-restart-the-node/228912/1 "2020-04-20T18:06:38Z")

</div>

i am using ES 7.5.2 and the basic license is active. when i am trying to click on the "stack monitoring" tab i see the notification as "Monitoring Request Error" http 503 and want me to enable the xpack security in the config.yaml file.  
in the logs i can see the below error:  
Enable security by setting [xpack.security.enabled] to [true] in the elasticsearch.yml file and restart the node.

if i am trying to edit the file elasticsearch in /etc/elasticsearch then the elasticsearch service does not restart.

i have 3 node ES cluster on prem.

---

<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:** [May 18, 2020, 6:06pm UTC](https://discuss.elastic.co/t/enable-security-by-setting-xpack-security-enabled-to-true-in-the-elasticsearch-yml-file-and-restart-the-node/228912/2 "2020-05-18T18:06:45Z")

</div>

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