Connecting User-Built Kibana to an Elasticsearch Cluster

To interconnect user-built Kibana with CSS Elasticsearch clusters, the following conditions must be met:

  • The local environment must support access from external networks.

  • Kibana is built using ECS in the same VPC as Elasticsearch. Kibana can be accessed from the local public network.

  • Only Kibana images of the OSS version can be connected to Elasticsearch on CSS.

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.xxx.xxx
    elasticsearch.hosts: https://10.0.0.xxx: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
    

    Note

  • Non-security mode

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