Dashboards & Visualizations

Advanced XML context for radialGauge formatting

Yorokobi
SplunkTrust
SplunkTrust

I have the following entry in one of my advanced XML views/dashboards

        <module name="HiddenSearch" autoRun="True">
            <param name="search">index=jmx tag=AMQ | stats max(QueueSize) as maxqSize | chart eval(round(avg(maxqSize),0)) as qsize | rangemap field=qsize low=0-5000 elevated=5001-10000 default=severe</param>
            <param name="earliest">-5m@m</param>
            <param name="latest">now</param>
            <module name="SingleValue">
                <param name="field">qsize</param>
                <param name="beforeLabel">Avg. Queue Size:</param>
                <param name="classField">range</param>
            </module>
        </module>

I would like to convert the SingleValue/rangemap to a radialGauge but I am unable to determine the proper context for:

<param name="charting.chart">radialGauge</param>
<param name="charting.chart.rangeValues">[0,5000,10000,15000,20000]</param>

... and use the same "earliest" and "latest" or real-time search parameters. The chart formatter modules do not seem to support radialGauge.

0 Karma
1 Solution

emiller42
Motivator

Try something like this inside your hidden search module.

<module name="HiddenChartFormatter">
  <param name="charting.chart">radialGauge</param>
  <param name="charting.chart.rangeValues">[0,5000.10000.15000.20000]</param>
  <module name="FlashChart" />
</module>

View solution in original post

0 Karma

Yorokobi
SplunkTrust
SplunkTrust

With a couple of edits (FlashChart instead of flashChart) it works, now I just have to change its default size.

Thank you!

emiller42
Motivator

Updated my response with proper casing. Glad it helped!

emiller42
Motivator

Try something like this inside your hidden search module.

<module name="HiddenChartFormatter">
  <param name="charting.chart">radialGauge</param>
  <param name="charting.chart.rangeValues">[0,5000.10000.15000.20000]</param>
  <module name="FlashChart" />
</module>
0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...