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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...