Enable security on ELK(Elasticsearch)

Nidhi Gupta
1 min readMay 1, 2022

Security plays an important when it comes to data. To protect our data, we must enable security to our database access.

This article will help in understanding how to secure ELK data from unauthorized access by enabling security features on Elasticsearch, Logstash, and Kibana.

Step1: Enable the security feature on elasticsearch.

  1. Stop the ELK running instance.
  2. On every node of the cluster get access to elasticserach.yml and enable the security feature.

xpack.security.enabled: true

3. Move to the elastic search bin path (./bin/elasticsearch) and run

elasticsearch-setup-passwords interactive

While running this command will ask to set passwords for elastic search, logstash, kibana, filebeat, etc...

4. Now set the same username and password on the kibana and logstash .yml files also.

5. Restart the ELK services.

Yeah🤩 password settings are enabled successfully now login with the same username and password on the kibana.

Thanks for the read. Do clap👏 if find it useful.

“Keep learning and keep sharing knowledge.”

--

--

Nidhi Gupta

Azure Data Engineer 👨‍💻.Heading towards cloud technologies expertise✌️.