# Using Kibana to visualise last connection status by process

**URL:** https://discuss.elastic.co/t/using-kibana-to-visualise-last-connection-status-by-process/217186
**Category:** Kibana
**Created:** [January 30, 2020, 12:45pm UTC](https://discuss.elastic.co/t/using-kibana-to-visualise-last-connection-status-by-process/217186 "2020-01-30T12:45:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eoghan\_McLaughlin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eoghan_mclaughlin/32/52182_2.png) [@Eoghan\_McLaughlin](https://discuss.elastic.co/u/Eoghan_McLaughlin)
#### Post date: [January 30, 2020, 12:45pm UTC](https://discuss.elastic.co/t/using-kibana-to-visualise-last-connection-status-by-process/217186/1 "2020-01-30T12:45:13Z")

</div>

Hi All,

I am attempting to visualise the current connection status of processes within my system.  
When each process starts/stops, it posts and update to elasticsearch which includes a field "connected" (boolean) and "name" (string).

What I would like to show on screen is the last connected status by process, so processes that have disconnected can be quickly identified.

I have attempted to visualise this with a heatmap and also with a Horizontal bar chart, filtering connection and name.keyword by max time.  
I have had some success with this (see below)

 ![kibanaVis_example](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e07f5365be7b5e3b5b48861bc96982910d8383da.jpeg)

However if this is in a dashboard and I click any distinct row, it adds a "Connected : true" or a "Connected : false" to the KQL query at the top of the page, which overrides any other filters on the chart.  
For example if I click on an a process that is connected, the visualisation will just show each process and that the process has been connected at some point within the overall time period. What i would want to see is only the processes which are currently connected.

Is there anyway to visualise what I am trying to show, and if is there a less convoluted approach than the one I am taking

Thanks,  
Eoghan

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [January 30, 2020, 6:52pm UTC](https://discuss.elastic.co/t/using-kibana-to-visualise-last-connection-status-by-process/217186/2 "2020-01-30T18:52:01Z")

</div>

Hello Eoghan,

I think the best possible solution for you is to use vega sankey chart in which you can visualize connections.

Here is an example from our sample data dashboards for logs ( you can install them by adding sample data from Kibana home) :

 ![Screen Shot 2020-01-30 at 1.49.02 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3f98d28e29f7f31a9d97e936219ed0cfd6aeb009.jpeg)

If you click on edit - you will be able to see the vega code which was used.

 ![Screen Shot 2020-01-30 at 1.49.19 PM](https://us1.discourse-cdn.com/elastic/original/3X/9/8/98d0d749ced9d2dee0e81b34a4cc1179e8e6d3a3.jpeg)

Does that help?  
Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 27, 2020, 6:52pm UTC](https://discuss.elastic.co/t/using-kibana-to-visualise-last-connection-status-by-process/217186/3 "2020-02-27T18:52:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
