How Do I Connect In-house Developed Kibana to an Elasticsearch Cluster in CSS?
Constraints
Only Kibana images of the OSS version can be connected to Elasticsearch clusters in CSS.
Procedure
- Create an ECS.
- The ECS must be within the same VPC as the CSS cluster.
- Port 5601 must be allowed by the security group associated with the ECS.
- An EIP must be allocated to the ECS.
For details, see Purchasing an ECS.
- Obtain the address for accessing the Elasticsearch cluster of CSS.
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Elasticsearch.
- In the cluster list, obtain the target cluster's private IP address from the Private IP Address column. Generally, the IP address format is <host>:<port> or <host>:<port>,<host>:<port>.
If the cluster has only one node, the IP address and port number of this one node are displayed, for example, 10.62.179.32:9200. If the cluster has multiple nodes, the IP addresses and port numbers of all nodes are displayed, for example, 10.62.179.32:9200,10.62.179.33:9200.
- Install Kibana on the ECS and modify the configuration file.
- The following is an example of the configuration file for a security-mode cluster:
elasticsearch.username: "***" //Username of the security cluster elasticsearch.password: "***" //Password of the security cluster elasticsearch.ssl.verificationMode: none server.ssl.enabled: false server.rewriteBasePath: false server.port: 5601 logging.dest: /home/Ruby/log/kibana.log pid.file: /home/Ruby/run/kibana.pid server.host: 192.168.xxx.xxx //IP address or DNS name of the Kibana server. localhost is recommended. elasticsearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the Elasticsearch cluster elasticsearch.requestHeadersWhitelist: ["securitytenant","Authorization"] opendistro_security.multitenancy.enabled: true opendistro_security.multitenancy.tenants.enable_global: true opendistro_security.multitenancy.tenants.enable_private: true opendistro_security.multitenancy.tenants.preferred: ["Private", "Global"] opendistro_security.multitenancy.enable_filter: false
To access a security-mode cluster, the opendistro_security_kibana plug-in must be installed. For details, see security-kibana-plugin. The plug-in version must be the same as that of the cluster. To check the plug-in version, run the GET _cat/plugins command.
- The following is an example of the configuration file for a non-security mode cluster:
server.port: 5601 logging.dest: /home/Ruby/log/kibana.log pid.file: /home/Ruby/run/kibana.pid server.host: 192.168.xxx.xxx //IP address or DNS name of the Kibana server. localhost is recommended. elasticsearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the Elasticsearch cluster
- The following is an example of the configuration file for a security-mode cluster:
- Use a browser on your local PC to connect to the EIP associated with the ECS. The URL is http://EIP:5601. Log in to Kibana to access the Elasticsearch cluster.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot