Hi,
i want to switch the searches on the basis of token value from
dropdown. This is my conditional module its always showing only the value of second hidden search irrespective of condition.Please tell what iam missing here.
The problem is that the StaticRadio is sending down a context key called "series_setting". While that key is then being turned into a stringreplace intention by the name of "series", the context key itself is "series_setting", not "series".
So what you need to do is change context.get("series") to context.get("series_setting").
(or you could go the other way and change all the "series_setting" values to just "series".)
Intentions leave plenty of room for confusion. You might look at Sideview Utils because it does a lot of things to simplify view creation, not least of which is that you never have to use or think about intentions again...
Thanks,Now its working
hi melting,
I have done the changes you suggested.But there is no reflection on the dashboard.It is still executing the second search only
This is my full view
</module>
Can you include the modules upstream from the ConditionalSwitcher? The Switcher is getting the "series" value from the context, which presumably means some module upstream is putting in a "series" key. If you include the upstream modules then we can verify that the upstream part is as it should be.
Without knowing your full view. The conditional switcher has some debug logging in it, so you could turn on logging and see the results in your browser's console.
If you want to turn on browser logging:
in $SPLUNK_HOME/etc/log.cfg python stanza
change all values to DEBUG
In web.conf settings stanza
js_logger_mode = Firebug
After turning logging on you will see messages like:
Splunk.Module.ConditionalSwitcher evaluating ...