What is Kibana?
Kibana is an open source analytics and visualization platform designed to work with Elasticsearch. You use Kibana to search, view, and interact with data stored in Elasticsearch indices. You can easily perform advanced data analysis and visualize your data in a variety of charts, tables, and maps.
For more information about Kibana, please visit www.elastic.co/products/kibana
Run with docker
Running in Development Mode
In the given example, Kibana will a attach to a user defined network (useful for connecting to other services (e.g. Elasticsearch)). If network has not yet been created, this can be done with the following command:
docker network create somenetwork
Note 1: In this example, you should run elasticsearch image with the same option --net somenetwork !!!
docker run -d --net somenetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.1
Note 2: Kibana is using the default configuration and expects to connect to a running Elasticsearch instance at [http://ELASITC_SEARCH_IP:9200]
Run kibana
I use the same tag 6.6.1 which is uesd by elasticsearch.
docker run -d --name kibana --net somenetwork -p 5601:5601 --add-host elasticseaerch:172.18.0.2 docker.elastic.co/kibana/kibana:6.6.1
Note: use option --add-host to add correct host to kibana container. Using command below to find the real ip in the network we create before
docker network inspect somenetwork
[
{
"Name": "somenetwork",
"Id": "96ae363044ec128653ccfc59cb005fc93ef28df6b02b3919d05c9ec7448766d1",
"Created": "2019-03-05T03:12:11.3740499Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "172.18.0.0/16",
"Gateway": "172.18.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"d3be138f775f6e6bf98dc043bb2953597ab975fc8d6bf9c16454c7495000eb10": {
"Name": "angry_taussig",
"EndpointID": "96ebe6e9e935e1640c3109b1637d0c55580ea3b91f7e38ce01eada37410dc1f5",
"MacAddress": "02:42:ac:12:00:02",
"IPv4Address": "172.18.0.2/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]
Kibana can be accessed by browser via http://localhost:5601
Reference
- https://hub.docker.com/_/kibana