icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Sankey Visualization by Dataflect
SHA256 checksum (sankey-visualization-by-dataflect_106.tgz) 6574a389a2a093f4b017153ce9d0a6474afe27b58ec291d45393ccf685e2d041
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Sankey Visualization by Dataflect

Splunk Cloud
Overview
Details
Sankey Visualization by Dataflect is a lightweight Splunk custom visualization that turns any three-column search (source, target, value) into an interactive flow diagram. It scales to large result sets via paged aggregation, offers intuitive formatting options for link coloring (by link, by source, by target, gradient, or gray) and node alignment (justify, left, center, right), and automatically adapts to dark theme with solid backgrounds and readable labels. Use it in Search or dashboards to quickly surface fan-in/fan-out patterns, bottlenecks, and flow transitions across pipelines, networks, processes, or logs.

This app was developed to support Splunk users that are migrating off of the EOL Splunk Sankey Diagram - Custom Visualization App. Long live Simple XML.

For additional information, visit dataflect.com.

Sankey Visualization by Dataflect — Usage Guide

Render a Sankey diagram from any search that outputs exactly three columns:
- source (string)
- target (string)
- value (numeric)

The visualization aggregates results across pages automatically, but you should aggregate in SPL for best performance.


Data requirements

Your final pipeline must end with a table like:

source target value
A B 10
A C 5
B D 7

Notes:
- value must be numeric (use tonumber() if needed).
- If your field names differ, rename them to source, target, value.


Quick start (Search UI or Dashboard panel)

  1. Run a search that returns the three required columns.
  2. Switch to the Visualization tab and choose the Sankey custom visualization.
  3. Open Format to adjust Link color and Node alignment as desired.

Example searches (copy/paste)

1) Minimal demo (hand-crafted flows)

| makeresults
| eval flows="S1>A 10;S1>B 5;S2>A 3;S2>C 7;S3>B 8;A>X 9;A>Y 4;B>X 6;B>Y 5;C>Y 7;X>Z1 8;X>Z2 7;Y>Z2 9;Y>Z3 6"
| makemv delim=";" flows
| mvexpand flows
| rex field=flows "(?<source>[^> ]+)\s*>\s*(?<target>[^ ]+)\s+(?<value>\d+)"
| eval value=tonumber(value)
| table source target value

2) Aggregate your own data (rename fields to match)

<your base search producing src, dst, count>
| stats sum(count) as value by src dst
| rename src as source dst as target
| where value > 0
| table source target value

Formatting options (Format → Sankey)

Link color

  • By link (random) — Each edge gets a distinct, stable color derived from its source→target pair.
  • By source node — All edges leaving the same source share that source’s color.
  • By target node — All edges entering the same target share that target’s color.
  • Source → Target gradient — Each edge blends from its source color to its target color along the path.
  • None (gray) — Neutral monochrome edges.

Tip: Use By source or By target to emphasize fan-out vs. fan-in relationships. Use Gradient to show flow transitions.

Node alignment

  • Justify — Places sources at the far left, sinks at the far right; intermediate columns stretch to fill available breadth (good default).
  • Left — Packs nodes as far left as allowed by the graph.
  • Center — Centers nodes between their earliest and latest possible columns.
  • Right — Packs nodes as far right as allowed.

Tip: Switch between Left, Center, Right, and Justify on datasets with multiple interior layers to see distinct layouts.


Usage tips

  • Always aggregate before the final table:

    ... | stats sum(value) as value by source target | where value > 0

  • Ensure the graph is acyclic; Sankey represents directional flow between columns.

  • For very large result sets, keep the number of unique (source, target) pairs to a reasonable size for interactivity.

Release Notes

Version 1.0.6
Aug. 19, 2025
  • Fix examples dashboard

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk LLC in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.