Kibana Docker

Page last updated:

Overview

With Docker you can easily push Kibana as an App to manage your Elasticsearch instance.

Step by Step Guide

This section describes how to setup your Kibana-instance in Cloud Foundry using the official Docker image from Elastic.

Prerequisites

Before you can set up Kibana, you need an Elasticsearch-service. - Elasticsearch

Create the manifest.yml

Create a manifest.yml in an empty folder according to the following example to configure your Kibana.

applications:
  - name: mykibana
    memory: 2G
    disk_quota: 2G
    instances: 1
    routes:
      - route: mykibana.scapp.io
    services:
        - my-elasticsearch
    docker:
      image: docker.elastic.co/kibana/kibana:7.5.2
    command: |
      export ELASTICSEARCH_HOSTS=$(echo $VCAP_SERVICES | grep -Po '"host":\s"\K(.*?)(?=")') &&
      export ELASTICSEARCH_USERNAME=$(echo $VCAP_SERVICES | grep -Po '"full_access_username":\s"\K(.*?)(?=")') &&
      export ELASTICSEARCH_PASSWORD=$(echo $VCAP_SERVICES | grep -Po '"full_access_password":\s"\K(.*?)(?=")') &&
      /usr/local/bin/dumb-init -- /usr/local/bin/kibana-docker

Use ELASTICSEARCH_URL instead of ELASTICSEARCH_HOSTS, if you are using version 6.x of Kibana.

Push the Docker container as usual with cf push and access it via the configured route using the full-access-user.

Next Step

If your access works properly, you may continue with setting up your Index Lifecycle Management

Further reading

Official Kibana Documentation

View the source for this page in GitHub