1
1

As a developer I would like to visualize elasticsearch data generated by the Axon.Ivy Desginer. This turns out not so easy because in Designer 7.0.x and 7.3 we use elasticsearch 5.5 without the x-pack plugin, and kibana 5.5 by default comes with x-pack plugin enabled. What is the best way to connect kibana to our elasticsearch ?

asked 11.09 at 10:25

adamf's gravatar image

adamf
1113614
accept rate: 25%


The following configuration for docker-compose seems to do the trick:

docker-compose.yml:

version: '2'
services:
  kibana:
    network_mode: host
    image: docker.elastic.co/kibana/kibana:5.5.3
    volumes:
      - ./kibana.yml:/usr/share/kibana/config/kibana.yml

kibana.yml:

server.name: kibana
server.host: "0"
elasticsearch.url: "http://localhost:19200"

If port 19200 was busy elastic will start at 19201, 19202 and so on. Your config needs to reflect that.

start docker compose with:

docker-compose up

This will download kibana docker image 5.5.3 and start using the host network, because we want to share our localhost elasticsearch server with the docker.

In case you get the message: "Optimizing and caching bundles for graph, monitoring, ml, kibana..." then be patient for a few minutes, kibana will eventually start.

Once kibana started it will complain it cannot find x-pack on the designer`s elastic search server. Get your container id by running:

docker ps

perform as kibana root user x-pack unistallation:

docker exec -u 0 -t <container_id> /bin/bash -c '/usr/share/kibana/bin/kibana-plugin remove x-pack'

The output will be "Removing x-pack..."

Restart the docker with:

docker-compose restart

Run some cases in ivy and check what indices you have:

curl localhost:19200/_cat/indices

Open Kibana at localhost:5601 and create an index-pattern that mached the indices you want.

Happy visualizations with kibana!

link

answered 11.09 at 11:37

adamf's gravatar image

adamf
1113614
accept rate: 25%

edited 11.09 at 11:48

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19

Asked: 11.09 at 10:25

Seen: 110 times

Last updated: 11.09 at 11:48