<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Conditional Switcher not working in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63240#M871</link>
    <description>&lt;P&gt;Thanks,Now its working&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2012 12:10:37 GMT</pubDate>
    <dc:creator>john</dc:creator>
    <dc:date>2012-09-20T12:10:37Z</dc:date>
    <item>
      <title>Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63234#M865</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
i want to switch the searches on the basis of token value from &lt;BR /&gt;
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.&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="ConditionalSwitcher" group="splIcon-results-chart" alttitle="Results Chart"&gt;&lt;BR /&gt;
                      &lt;OBJECT&gt;&lt;PARAM name="mode" /&gt;independent&lt;BR /&gt;
                      &lt;PARAM name="condition" /&gt;(context.get("series")=="ERROR")&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="search" /&gt;index="logs" ERROR &lt;BR /&gt;
 &lt;MODULE name="EventsViewer"&gt;&lt;BR /&gt;
 &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="search" /&gt;index="logs" Exception &lt;BR /&gt;
 &lt;MODULE name="EventsViewer"&gt;&lt;BR /&gt;
 &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63234#M865</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-09-18T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63235#M866</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;If you want to turn on browser logging:&lt;BR /&gt;
in $SPLUNK_HOME/etc/log.cfg &lt;STRONG&gt;python&lt;/STRONG&gt; stanza&lt;BR /&gt;
change all values to DEBUG&lt;BR /&gt;
In web.conf settings stanza&lt;BR /&gt;
js_logger_mode = Firebug&lt;/P&gt;

&lt;P&gt;After turning logging on you will see messages like:&lt;BR /&gt;
Splunk.Module.ConditionalSwitcher evaluating ...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63235#M866</guid>
      <dc:creator>melting</dc:creator>
      <dc:date>2020-09-28T12:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63236#M867</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 07:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63236#M867</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-09-19T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63237#M868</link>
      <description>&lt;P&gt;This is my full view&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="StaticRadio" layoutpanel="panel_row1_col1"&gt;&lt;BR /&gt;
  &lt;OBJECT&gt;&lt;PARAM name="name" /&gt;myRadio&lt;BR /&gt;
  &lt;PARAM name="settingToCreate" /&gt;series_setting&lt;BR /&gt;
  &lt;PARAM name="label" /&gt;field:&lt;BR /&gt;
  &lt;PARAM name="staticFieldsToDisplay" /&gt;&lt;BR /&gt;
    &lt;LIST&gt;&lt;BR /&gt;
      &lt;PARAM name="label" /&gt;ERROR&lt;BR /&gt;
      &lt;PARAM name="value" /&gt;ERROR&lt;BR /&gt;
    &lt;/LIST&gt;&lt;BR /&gt;
    &lt;LIST&gt;&lt;BR /&gt;
      &lt;PARAM name="label" /&gt;Ecxeption&lt;BR /&gt;
      &lt;PARAM name="value" /&gt;Exception&lt;BR /&gt;
    &lt;/LIST&gt;&lt;BR /&gt;
  &lt;BR /&gt;
&lt;MODULE name="ConvertToIntention"&gt;&lt;BR /&gt;
        &lt;PARAM name="settingToConvert" /&gt;series_setting&lt;BR /&gt;
        &lt;PARAM name="intention" /&gt;&lt;BR /&gt;
            &lt;PARAM name="name" /&gt;stringreplace&lt;BR /&gt;
            &lt;PARAM name="arg" /&gt;&lt;BR /&gt;
                &lt;PARAM name="series" /&gt;&lt;BR /&gt;
                 &lt;PARAM name="default" /&gt;apache_error&lt;BR /&gt;
                 &lt;PARAM name="value" /&gt;$target$&lt;BR /&gt;
                &lt;BR /&gt;
            &lt;BR /&gt;
        &lt;BR /&gt;
  &lt;MODULE name="ConditionalSwitcher" group="splIcon-results-chart" alttitle="Results Chart"&gt;&lt;BR /&gt;
                      &lt;PARAM name="mode" /&gt;independent&lt;BR /&gt;
                      &lt;PARAM name="condition" /&gt;(context.get("series")=="ERROR")&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="search" /&gt;index="logs" ERROR &lt;BR /&gt;
 &lt;MODULE name="EventsViewer"&gt;&lt;BR /&gt;
 &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="search" /&gt;index="logs" Exception &lt;BR /&gt;
 &lt;MODULE name="EventsViewer"&gt;&lt;BR /&gt;
 &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63237#M868</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2020-09-28T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63238#M869</link>
      <description>&lt;P&gt;hi melting,&lt;/P&gt;

&lt;P&gt;I have done the changes you suggested.But there is no reflection on the dashboard.It is still executing the second search only&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 05:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63238#M869</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-09-20T05:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63239#M870</link>
      <description>&lt;P&gt;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". &lt;/P&gt;

&lt;P&gt;So what you need to do is change  context.get("series")   to  context.get("series_setting"). &lt;BR /&gt;
(or you could go the other way and change all the "series_setting" values to just "series".)&lt;/P&gt;

&lt;P&gt;Intentions leave plenty of room for confusion.  You might look at &lt;A href="http://sideviewapps.com/apps/sideview-utils" target="_blank"&gt;Sideview Utils&lt;/A&gt; 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... &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63239#M870</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T12:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Switcher not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63240#M871</link>
      <description>&lt;P&gt;Thanks,Now its working&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 12:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Conditional-Switcher-not-working/m-p/63240#M871</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-09-20T12:10:37Z</dc:date>
    </item>
  </channel>
</rss>

