Scalable Vector Graphics - Custom Visualization allows Scalable Vector Graphics (SVG) text generated from Splunk's Search Processing Language (SPL) to be displayed in a dashboard.
Generate any SVG text (statically or dynamically) and put the result into the svg_viz field so the visualisation can display it.
Select the SVG vizualization to display the svg_viz field as a SVG image.
The app contains different dashboard examples showing what can be created with the SVG visualisation.
Example dashboards in menu
The app contains macros to display pre-canned battery and counters visualisations.
Example dashboards in menu using SVG macros
Drilldowns are not supported per se but linking to other urls can be done via adding href links inside the SVG using the syntax <a href="{url_to_link_to}">{svg_tags}</a>
SVG visualizations can be printed directly from the browser or via Export -> Print on the dashboard.
[Painting a Picture with Splunk] (https://www.splunk.com/blog/2018/11/07/painting-a-picture-with-splunk.html) provides an introduction to this app.
The .conf18 session "Visualize This, Mother Trucker" covers in detail what can be done with this app.
1. [Visualize This, Mother Trucker - Recording] (https://conf.splunk.com/files/2018/recordings/visualize-this-mother-trucker-fn1209.mp4)
2. [Visualize This, Mother Trucker - Slides] (https://static.rainfocus.com/splunk/splunkconf18/sess/1522264007181001u2i3/finalPDF/FN1209_VisualizeThisMotherTrucker_Final_1538794427127001rdIr.pdf)
Known Issues
Removal of direct jQuery references
Update of dependant javascript libraries
Update trellis dashboards to increase panel height
For Splunk versions 8.1 and below please use 3.0.1 / 3.0.2
Version 3.0.2
Bumped up versions of dependant javascript libraries
Dependant javascript libraries set to specific versions to remove the risk of dependant library updates impacting svg app
Version 3.0.1
SVG error message updates - SVG error animation disabled, configuration for animation time removed, now shows if it’s a parse or field error, bad SVG examples dashboard updated
Macro updates - fixed hardcoded error with viewbox macro
Viewbox updates - can opt-out of the default wrapping SVG into a viewbox, so the image can automatically fill into the outer HTML container, tweaked some panels in showcase dashboards to handle new viewbox options
Version 3.0.1
SVG error message updates - SVG error animation disabled, configuration for animation time removed, now shows if it’s a parse or field error, bad SVG examples dashboard updated
Macro updates - fixed hardcoded error with viewbox macro
Viewbox updates - can opt out of the default wrapping SVG into a viewbox, so the image can automatically fill into the outer HTML container, tweaked some panels in showcase dashboards to handle new viewbox options
Version 3.0.0
SVG can now work with Trellis layout ( 4 new working example dashboards added )
SVG logo and Turtle are now macros
Tweaked remaining fields in SPL left after macros run
Bumped up versions of dependant javascript libraries
Removed white_background.css use light_theme_background.css instead
Support for Splunk 6.5 dropped with the arrival of Trellis layouts
New macro svg_viz_add_viewbox added which wraps existing SVG into a viewbox to help with initial scaling of some external SVGs
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.