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
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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 ...