Hooman Bahreini
Hooman Bahreini

Reputation: 15579

how to enable xpack.security.enabled?

I have installed Elasticsearch 7, on Ubuntu. I believe X-Pack is installed by default, but I need to enable it.

In which file should I set this setting?

My cluster settings are in: /etc/elasticsearch/elasticsearch.yml and /etc/default/elasticsearch, but I cannot see xpack.security.enabled in either of files...

Upvotes: 11

Views: 31485

Answers (1)

hamid bayat
hamid bayat

Reputation: 2179

write the following line in /etc/elasticsearch/elasticsearch.yml :

xpack.security.enabled: true

when you enable xpack.security, you need to create user and password unless you cannot use elasticsearch or kibana. follow this guide: https://www.elastic.co/guide/en/elastic-stack-overview/current/get-started-enable-security.html

Upvotes: 20

Related Questions