Before learning how to access an ES cluster, you need to understand user authentication in ES clusters first.
This feature is used to improve the data access security of ES clusters (for more information, please see Protect your data in the Elastic Stack). You must pass the authentication based on username and password before you can access an ES cluster through Kibana, clients, or APIs. For more information, please see Accessing Cluster from API, Accessing Cluster from Client, and Accessing Cluster from Kibana.
You are required to set the username and password when creating an ES cluster.
- For clusters with this feature not enabled, the username and password will be used only for Kibana login.
- For clusters with this feature enabled, the username and password can be used for authentication for ES cluster login in any method.
Not all Elasticsearch editions support this feature. The support conditions of all editions are as follows:
If you did not enable user authentication for an ES cluster previously and now want to enable it by upgrading the cluster or toggling the configuration switch, you need to complete the following steps first: