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 Donut Charts
SHA256 checksum (donut-charts_10.tgz) e5e41d004459e64a885cc56c68f9c989c36454329833728a4458fb57e184f767
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Donut Charts

Splunk Cloud
This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
NOTE: There is an improved version of this visualization for Splunk 6 -- the Sunburst chart -- it can be found here: http://apps.splunk.com/app/1613/

This app allows for the use of Donut Charts in Advanced XML dashboards. It contains a wrapper for the libraries provided by highcharts.com. The libraries have been included in the add-on and are free for non-commercial use. Please consult http://shop.highsoft.com/highcharts.html for commercial licensing.

The add-on contains a sample dashboard and sample search that can be used for reference. In order to include the donut_chart module in an Advanced XML dashboard, use the following syntax:

<module name="HiddenSearch" layoutPanel="panel_row1_col1" group="Sample Use of a Donut Chart" autoRun="True">
    <param name="search">index=_internal | stats count AS values by group series | sort - values | stats list(series) AS categories list(values) AS data BY group | rename group AS name</param>
    <param name="earliest">-7d</param>
    <module name="DonutChart">
      <param name="palette">#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92</param>
    </module>
  </module>

NOTE: The default palette contains 9 colors. If your search yields more than 9 events -- which would create more than 9 inner-slices of pie -- you will need to provide a palette with more color selections, or risk your donut chart showing only shades of gray.

Three fields must be present or calculated in your data to produce donut charts:

name - this represents the label for an inner-ring pie slice.
categories - this contains the label for each outer-ring sub-division of a pie slice; it can be a multi-valued field or a comma-separated list.
data - this contains the values for each outer-sing sub-division. It can be a multi-valued field or a comma-separated list, and it needs to be sorted to map each value's position to the respective position in the cateories field. The add-on will calculate percentages based on these values.

Here is a sample search that will produce the desired output:

index=_internal | stats count AS values by group series | sort - values | stats list(series) AS categories list(values) AS data BY group | eval categories=mvindex(categories, 0, 10) | eval data=mvindex(data, 0, 10) | rename group AS name

The output will look as follows:

NAME
CATEGORIES
DATA

per_host_thruput
ubu.local
182

torrent.altf4.com
3

na1.lab.local
1

per_index_thruput
_internal
512

netapp
400

netapp_perf
381

Release Notes

Version 1.0
Aug. 16, 2012

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 Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.