# Vega visualisation

**URL:** https://discuss.elastic.co/t/vega-visualisation/227769
**Category:** Kibana
**Created:** [April 13, 2020, 11:44am UTC](https://discuss.elastic.co/t/vega-visualisation/227769 "2020-04-13T11:44:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cyberzlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberzlo/32/65490_2.png) [@cyberzlo](https://discuss.elastic.co/u/cyberzlo)
#### Post date: [April 13, 2020, 11:44am UTC](https://discuss.elastic.co/t/vega-visualisation/227769/1 "2020-04-13T11:44:58Z")

</div>

Someone know maybe how use [https://vega.github.io/vega/examples/reorderable-matrix/](https://vega.github.io/vega/examples/reorderable-matrix/) to dynamic visualise connections when I have ip\_src and ip\_dst fields in each of logs? Kibana documentation regarding vega is very minimalistic and I don't know how to do it :(.

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [April 14, 2020, 8:39am UTC](https://discuss.elastic.co/t/vega-visualisation/227769/2 "2020-04-14T08:39:43Z")

</div>

Hi @cyberzlo,  
Kibana docs related to Vega is minimalistic because there aren't many Kibana specific configurations that can be applied to a Vega spec except the data part that accepts ES queries (with ES specific DSL) and few filters configuration. Everything else is pure Vega specification that can be retrieved from [https://vega.github.io/vega/docs/](https://vega.github.io/vega/docs/) as you already did.

In your case seems that you have to add an ES query that returns all the `edges`, so every link between `ip_src` and `ip_dst` and all the nodes (every IPs available)  
Then you reuse the vega example and tweak the marks and scapes specs to follow your conventions. You can also try to start working from the Vega online editor [https://vega.github.io/editor/#/examples/vega/reorderable-matrix](https://vega.github.io/editor/#/examples/vega/reorderable-matrix) changing the `data` spec to something that can resemble your data work from there.

Basically the Kibana Vega plugin is a Vega visualization with the ability to add an ES query as part of the specification

---

<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: [May 12, 2020, 8:39am UTC](https://discuss.elastic.co/t/vega-visualisation/227769/3 "2020-05-12T08:39:46Z")

</div>

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