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

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 Number Display Viz
SHA256 checksum (number-display-viz_145.tgz) 4317e4e8ad9eb6c81349520905272ec7134c0a6518d2c93640ac13d5148745d1 SHA256 checksum (number-display-viz_144.tgz) 041a8516cac68fa8d79fee4f6e8cea9c9b6045581285c85f67514d2795fcc44a SHA256 checksum (number-display-viz_143.tgz) 4e2a656831d772668268bb177fe353783beb987d3487c2fd2f64fc72feb8981e SHA256 checksum (number-display-viz_123.tgz) a1228aca3b9612533c24024a64dcc1589caa892cfe9946903afaa9d8a3fbfa4c SHA256 checksum (number-display-viz_113.tgz) 4c3263ae414b1759e8c031dc1d3bf51bdd3f1008ada64b578a51379446d8f339
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Number Display Viz

Splunk AppInspect Passed
Overview
Details
A collection of ultra-configurable, single-statistic visualizations for Splunk. Includes the following styles: gauge, horseshoe, spinner, shapes (rectangle, hexagon, circle, ring, donut). Make dashboards come alive with animated number changes and subtle pulse animations.

Number Display viz

A collection of ultra-configurable, single-statistic visualizations for Splunk. Contains three main types of viz: Gauges, Spinners and SVG shapes (Square, Rectangle, Hexagon, Rings and donuts). Similar to Graphana singlestat panel.

Known issue: Splunk can be laggy (causing formatting options to not apply) with visualizations that have many formatting options. Please be patient when the formatting form is opening and when switching formatting tabs. If the form opens twice and overlaps, then the settings won't save properly.

Copyright (C) 2019 Chris Younger. I am a Splunk Professional Services consultant working for JDS Australia, in Brisbane Australia.

Source code | Questions, Bugs or Suggestions | My Splunk apps

Usage

This visualization can deal with most datasets you want to throw at it. However for the most reliable results, use a search where the field names are exactly "value", "title" and "sparkline".

|stats sparkline(avg(SOME_VALUE)) as sparkline latest(SOME_VALUE) as value

For multiple items do this:

| rename SPLIT_CATEGORY as title | stats sparkline(avg(SOME_VALUE)) as sparkline latest(SOME_VALUE) as value BY title

The configured viz formatting can be overridden in data by havign specifically named fields.
Here is an example where the subtitle is supplied in the data:

| rename SPLIT_CATEGORY as title | stats sparkline(avg(SOME_VALUE)) as sparkline latest(SOME_VALUE) as value latest(SOME_VALUE2) as subtext BY title

another way of doing the same thing is like so:

| rename SPLIT_CATEGORY as title | stats sparkline(avg(SOME_VALUE)) as sparkline latest(SOME_VALUE) as value BY title | eval subtext = "something"

These are the fields that can be overridden in data:

Field Type Description
value Numeric The value which will be used for threshold calculation and to set the gauge position or spinner speed. Viz will attempt to autoguess this field if not explicity supplied.
title String The title of the metric which will be shown as a text overlay. Viz will attempt to autoguess this field if not explicity supplied.
sparkline sparkline array The sparkline field to use as the area or line chart overlay. Viz will attempt to autoguess this field if not explicity supplied.
color HTML color code Set the base color, ignoring the thresholds. By using this field you can use any threshold logic you like in the search query
primarycolor HTML color code Similar to above but will only override the primary color. The threshold color can still be used by other components. The primary color is only used by the main element (the gauge, spinner or shape background) in the viz.
secondarycolor HTML color code As above.
text String If supplied, this field enables overriding what would be shown as the numeric value
subtitle String Override the subtitle value. Note that subtitle must be blank in the formatting options
min Number Overrides the "min" limit
max Number Overrides the "max" limit

Formatting options

  1. Set the height. Since most Styles have a fixed aspect ratio this also sets the width. When blank it will automatically determine the size so that all items can fit on a single line. Items will split onto multiple lines when using a hardcoded size if there is not enough space.
  2. Set the minimum horizontal spacing between items.
  3. The data limits are important for the gauge and spinner styles only.
  4. Set thresholds and leave any blank that are not needed. If you need more thresholds or non-numeric thresholds then compute them in the search query and pass the color as the color field.
  5. The primary and secondary fields are the colors that are used by the main style component such as the gauge, spinner, or the shape color. This allows the color to be set to a static color and the threshold color to be used for the textvalue overlay, the sparkline or other places. Exactly what the primary or secondary color affects is different for each style, however it is typically a gradient range. If the Primary and Secondary color are set exactly the same then some of the shape textures will not be visible.

  6. To show a sparkline, then be sure to pass in sparkline data. use | stats sparkline(AGG_FUNCTION(VALUE))

  7. The Text, Title, Subtitle tabs allow for configuring how text overlays are applied. They are all kind of the same except the text value can have animations on change, and a unit prefix/suffix.

    • If the data has a sparkline field but no value field then the last value of the sparkline will be used.
    • The Title and Subtitle options should be left blank to use values from the data instead.
    • Advanced font styles are hosted by Google Fonts so these won't work unless the viewer has an internet connection.

Icons

The title, text, or subtitle fields allow for HTML injection. This allows icons to be used in place of text or numbers.
Any icon from the FontAwesome v5 Free icon sets can be used, the complete list is here: https://fontawesome.com/cheatsheet/
There are also some Splunk built-in icons that can be used. See the list at the following page of your Splunk environment: /en-GB/static/docs/style/style-guide.html#icons
Here is an example search query to display an icon:

Custom fonts

It is possible to use custom fonts (hosted on the internet) by overriding specific CSS classes in a HTML panel: .number_display_viz-font1 .. font5.

Example: https://git.io/fjz5B

Third party software

The following third-party libraries are used by this app. Thank you!

Release Notes

Version 1.4.5
July 12, 2019

1.4.5 - Fix bug where sparkline field couldn't always be set as expected. Corrected inconsistent left alignment.

1.4.4. - Window resize triggers reflow. Redo margin/padding code to behave more reasonably. You can also supply two numbers now for the margin (top/bottom left/right). Added autopanelheight experimental feature.

1.4.3 - Fix drill-down tokens - $row.<fieldname>$ and $click.name$ now work. Better handling of multi-rows. Fails gracefully on large datasets.

1.2.3 - Field names "value", "title" and "sparkline" now take priority over guessed fields if these fields are supplied explicitly in the data. Added options for dealing with sparklines that have null values (note that `|stats sparkline()` will create sparklines with zero values and not nulls.

Version 1.4.4
July 10, 2019

1.4.4. - Window resize triggers reflow. Redo margin/padding code to behave more reasonably. You can also supply two numbers now for the margin (top/bottom left/right). Added autopanelheight experimental feature.

1.4.3 - Fix drill-down tokens - $row.<fieldname>$ and $click.name$ now work. Better handling of multi-rows. Fails gracefully on large datasets.

1.2.3 - Field names "value", "title" and "sparkline" now take priority over guessed fields if these fields are supplied explicitly in the data. Added options for dealing with sparklines that have null values (note that `|stats sparkline()` will create sparklines with zero values and not nulls.

Version 1.4.3
July 9, 2019

Version 1.2.3
June 16, 2019

* Field names "value", "title" and "sparkline" take priority over guessed fields if these fields are supplied explicitly in the data.
* Add options for dealing with sparklines that have null values

Version 1.1.3
June 12, 2019

260
Installs
506
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

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.

Follow Us:
© 2005-2019 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and 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.