Help Center/ Cloud Search Service/ User Guide/ Working with Kibana/ How Do I Connect a User-built Kibana with Elasticsearch on Huawei Cloud?
Updated on 2023-03-15 GMT+08:00

How Do I Connect a User-built Kibana with Elasticsearch on Huawei Cloud?

To connect the self-built Kibana with Elasticsearch on Huawei Cloud, the following conditions must be met:

  1. The local environment must support access from external networks.
  2. Kibana is built using ECS in the same VPC as Elasticsearch. Kibana can be accessed from the local public network.

Example of a Kibana configuration file:

Security mode:
elasticsearch.username: "***"
elasticsearch.password: "***"
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.25.226
elasticsearch.hosts: https://10.0.0.207:9200
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
  • In security mode, the opendistro_security_kibana plug-in must be installed. For details, see: https://opendistro.github.io/for-elasticsearch-docs/docs/kibana/plugins/
  • The version of the installed plug-in must be the same as that of the cluster. To check the version of the plug-in version, run the GET _cat/plugins command.

Non-security mode

server.port: 5601
logging.dest: /home/Ruby/log/kibana.log
pid.file: /home/Ruby/run/kibana.pid
server.host: 192.168.25.226
elasticsearch.hosts: http://10.0.0.207:9200