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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...