<?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: Condition-Match and set token in Drilldown not working in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238375#M14790</link>
    <description>&lt;P&gt;&lt;CODE&gt;'click.name2' == &amp;amp;quot;type_2&amp;amp;quot;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've had mixed results using $ for tokens. Use single quotes instead. You also need encoded quotes for the literal value.&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2016 18:44:36 GMT</pubDate>
    <dc:creator>akheraj_splunk</dc:creator>
    <dc:date>2016-05-04T18:44:36Z</dc:date>
    <item>
      <title>Condition-Match and set token in Drilldown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238374#M14789</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I wanted to build a dashboard that displays some panels only depending on the selection for the drilldown. My approach was the following, but for some reason the condition match is not generating any tokens. &lt;/P&gt;

&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  
&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
        &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
                &amp;lt;query&amp;gt;index=myindex | timechart count by type&amp;lt;/query&amp;gt;
                &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
                &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;drilldown&amp;gt;
            &amp;lt;condition match="$click.name2$ == type_1"&amp;gt;
                    &amp;lt;set token="mytoken1"&amp;gt;true&amp;lt;/set&amp;gt;
                    &amp;lt;unset token="mytoken2"&amp;gt;&amp;lt;/unset&amp;gt;
                &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="$click.name2$ == type_2"&amp;gt;
                    &amp;lt;set token="mytoken2"&amp;gt;true&amp;lt;/set&amp;gt;
                    &amp;lt;unset token="mytoken1"&amp;gt;&amp;lt;/unset&amp;gt;
                &amp;lt;/condition&amp;gt;
            &amp;lt;/drilldown&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
            &amp;lt;...&amp;gt;
        &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
&amp;lt;row&amp;gt;
    &amp;lt;panel depends="$mytoken1$"&amp;gt;
    ...
    &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row&amp;gt;
    &amp;lt;panel depends="$mytoken2$"&amp;gt;
    ...
    &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2016 15:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238374#M14789</guid>
      <dc:creator>VeEn</dc:creator>
      <dc:date>2016-05-04T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Condition-Match and set token in Drilldown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238375#M14790</link>
      <description>&lt;P&gt;&lt;CODE&gt;'click.name2' == &amp;amp;quot;type_2&amp;amp;quot;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've had mixed results using $ for tokens. Use single quotes instead. You also need encoded quotes for the literal value.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 18:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238375#M14790</guid>
      <dc:creator>akheraj_splunk</dc:creator>
      <dc:date>2016-05-04T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Condition-Match and set token in Drilldown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238376#M14791</link>
      <description>&lt;P&gt;Note for those that are trying to use 'trellis.name' or 'trellis.value'. It doesn't work at the moment (Splunk 7.0.2).&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 07:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Condition-Match-and-set-token-in-Drilldown-not-working/m-p/238376#M14791</guid>
      <dc:creator>slapie_splunk</dc:creator>
      <dc:date>2018-02-03T07:50:45Z</dc:date>
    </item>
  </channel>
</rss>

