<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to connect kibana with Axon.ivy designer`s internal elasticsearch server?</title><link>https://answers.axonivy.com/questions/3967/how-to-connect-kibana-with-axon-ivy-designer-s-internal-elasticsearch-server</link><description>&lt;p&gt;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 ?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3967/how-to-connect-kibana-with-axon-ivy-designer-s-internal-elasticsearch-server" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 11 Sep 2019 11:37:25 -0400</lastBuildDate><item><title>Answer by adamf</title><link>https://answers.axonivy.com/questions/3967/how-to-connect-kibana-with-axon-ivy-designer-s-internal-elasticsearch-server/3968</link><description>&lt;p&gt;The following configuration for docker-compose seems to do the trick:&lt;/p&gt;
&lt;p&gt;docker-compose.yml:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;kibana.yml:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;server.name: kibana
server.host: "0"
elasticsearch.url: "http://localhost:19200"
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If port 19200 was busy elastic will start at 19201, 19202 and so on. Your config needs to reflect that.&lt;/p&gt;
&lt;p&gt;start docker compose with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;docker-compose up
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;In case you get the message: &lt;em&gt;"Optimizing and caching bundles for graph, monitoring, ml, kibana..."&lt;/em&gt; then be patient for a few minutes, kibana will eventually start.&lt;/p&gt;
&lt;p&gt;Once kibana started it will complain it cannot find x-pack on the designer`s elastic search server. Get your container id by running:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;perform as kibana root user x-pack unistallation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;docker exec -u 0 -t &amp;lt;container_id&amp;gt; /bin/bash -c '/usr/share/kibana/bin/kibana-plugin remove x-pack'
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The output will be &lt;em&gt;"Removing x-pack..."&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Restart the docker with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;docker-compose restart
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Run some cases in ivy and check what indices you have:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;curl localhost:19200/_cat/indices
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Open Kibana at localhost:5601 and create an index-pattern that mached the indices you want.&lt;/p&gt;
&lt;p&gt;Happy visualizations with kibana!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">adamf</dc:creator><pubDate>Wed, 11 Sep 2019 11:37:25 -0400</pubDate><guid>https://answers.axonivy.com/questions/3967/how-to-connect-kibana-with-axon-ivy-designer-s-internal-elasticsearch-server/3968</guid></item></channel></rss>