# Sankey Visualization plugin installation

**URL:** <https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752>\
**Category:** Kibana\
**Created:** [July 6, 2023, 6:20am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752 "2023-07-06T06:20:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [July 6, 2023, 6:20am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/1 "2023-07-06T06:20:23Z")

</div>

Hi,  
I am trying to install Sankey visualization plugin in kibana. following the instructions mentioned here

> **[GitHub - uniberg/kbn\_sankey\_vis: Sankey diagram for Kibana visualize.](https://github.com/uniberg/kbn_sankey_vis)**
>
> Sankey diagram for Kibana visualize. Contribute to uniberg/kbn\_sankey\_vis development by creating an account on GitHub.

When i run the

```auto
yarn start

```

i am getting the following error

```auto
yarn run v1.22.19
$ cd ../.. && node scripts/kibana --dev --oss
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/etc/kibana/scripts/kibana'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

I am using kibana 8.7.0. And i have created a plugin folder in /etc/kibana and then started following the steps mentioned in the link. So basically sankey code is in this path  
/etc/kibana/plugin/sankey\_vis

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 6, 2023, 11:02am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/2 "2023-07-06T11:02:46Z")

</div>

Hi @Neelam_Zanvar,

Looking at the [plugin readme](https://github.com/uniberg/kbn_sankey_vis) it states this is compatible with 8.3.x, so it's possible the plugin has broken in later versions.

This is a community plugin so it's not something we look after. Have you considered raising an issue or contributing a fix to the project?

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [July 7, 2023, 5:19am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/3 "2023-07-07T05:19:42Z")

</div>

Oh, In that case any other visualization that i can use to track my user journey? i have four fields in the elasticsearch document token, ip, timestamp and url. for every ip and token combination i want a graph to visualize the url visited along with timestamp.

Have you considered raising an issue or contributing a fix to the project?  
No i haven't

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 7, 2023, 9:05am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/4 "2023-07-07T09:05:36Z")

</div>

So you could use Vega to build a Sankey chart. I would recommend having a look at the [Kibana Vega tutorials](https://www.elastic.co/guide/en/kibana/current/vega.html) and this slightly dated [blog](https://www.elastic.co/blog/sankey-visualization-with-vega-in-kibana) to get started.

Sankey's are great for showing flow, but if you are thinking of alternatives you could look at other options such as Chord (sometime called Edge diagrams), directed force graphs or even an Arc diagram. There are a few of these in the [Vega examples repo](https://vega.github.io/vega/examples/) that you could try out.

---

<div class="post-metadata">

**Author:** ![chbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chbas/32/42023_2.png) [@chbas](https://discuss.elastic.co/u/chbas)\
**Post date:** [July 16, 2023, 6:43pm UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/5 "2023-07-16T18:43:02Z")

</div>

Hi @Neelam_Zanvar , I'm the developer of the plugin and today I've managed to publish a new version that should work with both versions 8.7.0 and 8.8.2 .  
PS: As it's an external plugin, it will be helpful to raise further issues regarding the plugin in Github so I can get a notification when a problem shows up. Thanks!

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [July 19, 2023, 6:53am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/6 "2023-07-19T06:53:55Z")

</div>

sankey plugin?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 19, 2023, 12:28pm UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/7 "2023-07-19T12:28:29Z")

</div>

@Neelam_Zanvar yes, the Sankey plugin that you originally raised the issue about at the top of this topic.

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [July 20, 2023, 5:05am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/8 "2023-07-20T05:05:35Z")

</div>

can i have the link for sankey plugin installation and configuration steps document? for kibana 8.7.1

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [July 20, 2023, 5:19am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/9 "2023-07-20T05:19:52Z")

</div>

i am following the github page for the plugin

> **[GitHub - uniberg/kbn\_sankey\_vis: Sankey diagram for Kibana visualize.](https://github.com/uniberg/kbn_sankey_vis)**
>
> Sankey diagram for Kibana visualize. Contribute to uniberg/kbn\_sankey\_vis development by creating an account on GitHub.

But when i run yarn install command i am getting the following error

```auto
yarn install v1.22.19
info No lockfile found.
$ node ../../preinstall_check
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/etc/kibana/preinstall_check'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

```

---

<div class="post-metadata">

**Author:** ![chbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chbas/32/42023_2.png) [@chbas](https://discuss.elastic.co/u/chbas)\
**Post date:** [July 24, 2023, 8:55am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/10 "2023-07-24T08:55:24Z")

</div>

The new release currently only support versions 8.7.0 and 8.8.2 .

---

<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:** [August 21, 2023, 8:56am UTC](https://discuss.elastic.co/t/sankey-visualization-plugin-installation/337752/11 "2023-08-21T08:56:11Z")

</div>

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