how to enable xpack.security.enabled?

10,650

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

Share:
10,650
Hooman Bahreini
Author by

Hooman Bahreini

I am a software developer at shopless, a free marketplace for NZ. You can contact me via LinkedIn There are two aspects of software development that inspire me: Problem Solving and Software Design. I always wanted to become an architect... as a programmer, I often compare software with a building and like to extend their principles to each other. As an example, I find the architecture principle, Form Follows Function, very useful for UI design. I find myself to be a perfectionist and cannot find any better way to describe perfection: Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupéry

Updated on June 18, 2022

Comments

  • Hooman Bahreini
    Hooman Bahreini almost 2 years

    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...