All Apps and Add-ons

Problem with subsearch returning $value and sideview utils

MatMeredith
Path Finder

Hi,

I'm trying to convert a dashboard to use Sideview utils. One of my graphs is a radial gauge which uses a subsearch to construct the range to use.

        <param name="search"> ..snip.. | ..snip.. | gauge my_value [search ..snip.. | eval range=first+" "+second+" "+third+" "+fourth+" "+fifth | return $range]</param>

This was working fine until I converted to Sideview utils but not the graph doesn't even try to load. I can get the graph to load by dropping the $range clause from the subsearch, but then obviously the ranges are wrong. I'm guessing this is because sideview utils is incorrectly interpreting the $ here.

Any ideas how I can fix this please?

Tags (1)
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can use two dollar signs, much like you would escape a backslash in regular expressions.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can use two dollar signs, much like you would escape a backslash in regular expressions.

sideview
SplunkTrust
SplunkTrust

hehe. Yes I'll absolutely put it there too. And that $foo$ page is important enough that I should probably sprinkle a few more links to it around on different related pages. Thanks.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

A good place to put it would also be the $foo$ page.

0 Karma

sideview
SplunkTrust
SplunkTrust

Yep. The docs around using $$ for $ are in there, but only on the HTML module's docs. I need to put that same comment in a couple other places, notably in the Search module's main docs page. I will do so in a future version to help people find this out earlier rather than later.

0 Karma

MatMeredith
Path Finder

Thanks -- perfect!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...