Circle packing / pack layout / bubble chart visualization built with D3. Optional click-to-zoom and plenty of color themes.
Copyright (C) 2019 Chris Younger. I am a Splunk Professional Services consultant working for JDS Australia, in Brisbane Australia.
This visualisation expects tabular data, with any amount of text/category columns, but the last column must be a numerical value.
For example, the following data:
Would produce this:
The typical search uses
stats command like so:
index=* | stats count BY index sourcetype source
Sidenote: a much faster search to do the same thing is
|tstats count where index=* BY index sourcetype source
stats does not return rows when the group BY field is
null. Convert nulls to be an empty string like this:
index=_internal | eval component = coalesce(component,"") | eval log_level = coalesce(log_level,"") | stats count BY sourcetype component log_level
Add more fields after the "BY" keyword to increase the depth
The "Color overrides" field accepts either a JSON object (in curly braces) or comma separated pairs. For example to make sure that "INFO" values are green, WARN's are orange and ERROR's are red, set the value like so:
The "Set color by" options "First field.." allow for data to set the color of the leaf node but not affect the grouping. The "First field as color codes (n/g)" option allows for valid HTML color codes to be passed in from the search. Here is an example search:
index=_internal | stats sum(count) as count BY log_level component | eval color = case(log_level=="ERROR", "#b22b32",log_level=="INFO", "#1a9035",log_level=="WARN", "#AF5300", true(), "blue") | table color component count
Note that when using "Click action" of "Zoom in" the labels are not clipped and will probably overlap.
The following third-party libraries are used by this app. Thank you!
Add better formatting options for labels. Fix IE11/Edge support. Better handling of large datasets.
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 50GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.