Dashboards & Visualizations

How to pass a token value(drop down value) to a ConditionalSwitcher

john
Communicator

Hi ,

How to pass a token value or drop down value to a conditonal switcher.

series_setting

stringreplace


apache_error
$target$



independent
'(context.get("$series$")=="ERROR")'

Please help .

0 Karma

sideview
SplunkTrust
SplunkTrust

Lose the dollar signs from the context.get statement. The dollar tokens are not necessary when you're using the context object directly.

Also, dont put the quotes around the whole expression. Quite possibly the parens are also redundant although they'll probably do no harm.

for example:

<param name="condition">(context.get("series")=="ERROR")</param>
0 Karma
Get Updates on the Splunk Community!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...