Link graphs

Generate a link graph

Configuration panel options

You can use the Configuration panel to configure the following link graph components.

Title

Give your visualization a name. This is also helpful when searching for individual visualizations in the dashboard definitions. This name is not the same as the automatically assigned unique ID.

Description

Give your visualization a description to explain what the user is viewing.

Data Sources

You can choose one of the following data options:

  • An existing data source or create a new data source
  • A chain search
  • A saved search

Position & Size

You can use your mouse or the Position & Size section of the Configuration panel to change the size or location of the visualization for pixel-perfect sizing and placement.

Coloring

  • Background - Specify the color used for the background. The default for enterprise light is hexadecimal "#FFFFFF". The default for enterprise dark is hexadecimal "#000000".
  • Selected Node Color - Specify the color used to distinguish user selected nodes and the node's associated data flow.
  • Node Color - Specify the color used for each value in a column.
  • Link Color - Specify the color used for links between nodes.

Node Layout

  • Result Limit - Specify the limited number of nodes in each column.

Adjust the sizing of nodes and space with the following:

  • Node Width
  • Node Height
  • Vertical Spacing
  • Horizontal Spacing
  • Link Width

Display Options

  • Show Node Counts - Toggle on to see the number of nodes in each column.
  • Show Value Counts - Toggle on to see the individual count of each node.

Drilldown

Drilldown lets users click on a part of the graph to open an internal or external URL.

Code

Select your visualization or its search to view and edit the source code in real-time. You can also change the Visualization ID to a more readable ID to help identify this visualization in the source code.

Link graph example

Example data table

The table example demonstrates the data structure needed to generate a link graph.

Breakfast Lunch Dinner
cheese quiche souffle
croissant sandwich dinner roll
eggs frittata strata
eggs quiche strata
eggs custard egg tart
eggs shakshuka huevos rancheros

Source code

[...]
   "visualizations": {
       "viz_qb5GpdzC": {
           "type": "splunk.linkgraph",
           "dataSources": {
               "primary": "ds_linkgraph"
           },
           "options": {
               "nodeColor": "#f8be44",
               "linkColor": "#dc4e41",
               "resultLimit": 15,
               "nodeWidth": 340,
               "nodeHeight": 50,
               "nodeSpacingY": 20,
               "nodeSpacingX": 34,
               "linkWidth": 4
           }
       }
   },
   "dataSources": {
       "ds_linkgraph": {
           "type": "ds.test",
           "options": {
               "data": {
                   "columns": [
                       [
                           "cheese",
                           "croissant",
                           "eggs",
                           "eggs",
                           "eggs",
                           "eggs"
                       ],
                       [
                           "quiche",
                           "sandwich",
                           "frittata",
                           "quiche",
                           "custard",
                           "shakshuka"
                       ],
                       [
                           "souffle",
                           "dinner roll",
                           "strata",
                           "strata",
                           "egg tart",
                           "huevos rancheros"
                       ]
                   ],
                   "fields": [
                       {
                           "name": "Breakfast"
                       },
                       {
                           "name": "Lunch"
                       },
                       {
                           "name": "Dinner"
                       }
                   ]
               }
           }
       }
   },
 [...]

Source options for link graphs