Configuring OpenSearch Dashboards
OpenSearch Dashboards can be a great tool for exploring data on your cluster. You can configure your own OpenSearch Dashboards instance to point to your Instaclustr managed OpenSearch cluster.
First, you should create an OpenSearch Dashboards server user and role mapping.
Install OpenSearch Dashboards and modify the OpenSearch Dashboards config opensearch_dashboards.yml file to match your cluster. The example shown below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
server.host: https://<Node IP>:9200 <<-- You can add multiple nodes here opensearch.ssl.verificationMode: full opensearch.username: opensearch_dashboards_server opensearch.password: <The password for the OpenSearch Dashboards server user> opensearch.requestHeadersWhitelist: ["securitytenant","Authorization"] opensearch.ssl.certificateAuthorities: cluster-ca-certificate.pem <<-- full path to pem file downloaded from cluster connection page opensearch_security.multitenancy.enabled: true opensearch_security.readonly_mode.roles: ["opensearch_dashboards_read_only"] |
Start OpenSearch Dashboards e.g. bin/opensearch_dashboards
Go to OpenSearch Dashboards in your browser e.g. localhost:5601
Then you can then log in with the icopensearch user. This user will give you access to the security plugin page. You can add other users and roles there. For example, you can add an OpenSearch Dashboards user and stop using the all-access icopensearch user with OpenSearch Dashboards.