<?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 Piechart conditional drilldown  to open dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475249#M31193</link>
    <description>&lt;P&gt;I'm trying to get a piechart depicting teams to be drillable , opening up the respective team dashboard.   I know that my LINK works because of the final conditional.   But I can't seem to get any condition to match up the clicked value; everything seems to be acceptable syntax wise but gets ignored.    I've searched several topics, and seen several versions but nothing seems to be working for me.&lt;/P&gt;

&lt;P&gt;On Splunk Enterprise 7.3.2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;title&amp;gt;Team Moves for Month to Date&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;sourcetype=edc source="*dc_*" Direction="*" User!="User" | search CMTeam!=""  | top limit=15 CMTeam&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@mon&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x0066FF,0xFFCC00,0xFF3300,0x009933,0x009999,0x9900CC,0x000000,0xCC0000,0x000099,0x00CC00,0x33ADFF,0xFF00FF]&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="'click.value2' == &amp;amp;quot;ASAP&amp;amp;quot;"&amp;gt;
           &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___asap&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="'click.value' == &amp;amp;quot;Beacon&amp;amp;quot;"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___beacon&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="OpTime"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___optime&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="Anesthesia"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___anethesia&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___optime&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Feb 2020 18:11:37 GMT</pubDate>
    <dc:creator>mb1226</dc:creator>
    <dc:date>2020-02-21T18:11:37Z</dc:date>
    <item>
      <title>Piechart conditional drilldown  to open dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475249#M31193</link>
      <description>&lt;P&gt;I'm trying to get a piechart depicting teams to be drillable , opening up the respective team dashboard.   I know that my LINK works because of the final conditional.   But I can't seem to get any condition to match up the clicked value; everything seems to be acceptable syntax wise but gets ignored.    I've searched several topics, and seen several versions but nothing seems to be working for me.&lt;/P&gt;

&lt;P&gt;On Splunk Enterprise 7.3.2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;title&amp;gt;Team Moves for Month to Date&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;sourcetype=edc source="*dc_*" Direction="*" User!="User" | search CMTeam!=""  | top limit=15 CMTeam&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@mon&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x0066FF,0xFFCC00,0xFF3300,0x009933,0x009999,0x9900CC,0x000000,0xCC0000,0x000099,0x00CC00,0x33ADFF,0xFF00FF]&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="'click.value2' == &amp;amp;quot;ASAP&amp;amp;quot;"&amp;gt;
           &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___asap&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="'click.value' == &amp;amp;quot;Beacon&amp;amp;quot;"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___beacon&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="OpTime"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___optime&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="Anesthesia"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___anethesia&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https:&amp;lt;fullpath&amp;gt;/app/search/epic_data_courier__cm___optime&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475249#M31193</guid>
      <dc:creator>mb1226</dc:creator>
      <dc:date>2020-02-21T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart conditional drilldown  to open dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475250#M31194</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Viz/PanelreferenceforSimplifiedXML#link"&gt;link@SimpleXML&lt;/A&gt;&lt;BR /&gt;
try, &lt;CODE&gt;&amp;lt;![CDATA[]]&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;sample:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;pie chart drilldown&amp;lt;/label&amp;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=_internal
| stats count by sourcetype
| eval count=log(count)&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x0066FF,0xFFCC00,0xFF3300,0x009933,0x009999,0x9900CC,0x000000,0xCC0000,0x000099,0x00CC00,0x33ADFF,0xFF00FF]&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="clicks"&amp;gt;upper($click.value$)&amp;lt;/eval&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;
            &amp;lt;![CDATA[
             https://www.google.com/?q=$clicks$]]&amp;gt;
          &amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;recommend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;title&amp;gt;Team Moves for Month to Date&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;sourcetype=edc source="*dc_*" Direction="*" User!="User" CMTeam!=""| top limit=15 CMTeam&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;@mon&amp;lt;/earliest&amp;gt;    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&amp;lt;/search&amp;gt;
&amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.seriesColors"&amp;gt;[0x0066FF,0xFFCC00,0xFF3300,0x009933,0x009999,0x9900CC,0x000000,0xCC0000,0x000099,0x00CC00,0x33ADFF,0xFF00FF]&amp;lt;/option&amp;gt;
&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
&amp;lt;drilldown&amp;gt;
&amp;lt;eval token="links"&amp;gt;if(in($click.value2$,"ASAP","Beacon","OpTime","Anesthesia"),lower($click.value2$),"optime")&amp;lt;/eval&amp;gt;
&amp;lt;link target="_blank"&amp;gt;
&amp;lt;![CDATA[
/app/search/epic_data_courier__cm___$links$
]]&amp;gt;&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 22:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475250#M31194</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T22:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart conditional drilldown  to open dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475251#M31195</link>
      <description>&lt;P&gt;I've had some mixed success -- appropriate syntax is my confusion point at the moment.   I found that I had to do the condition match as follows &lt;BR /&gt;
                  &lt;CODE&gt;&amp;lt;condition match="'click.value'=&amp;amp;quot;ASAP&amp;amp;quot;"&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
Otherwise it would get ignored.&lt;/P&gt;

&lt;P&gt;The CDATA link above I couldn't get to work -- it kept generating pages  literally to a url ending in "link" rather than the value of link.   Of course that just generated 404 OOPS responses.   Again, we seem to have a syntax issue.  I don't know why this is unique, but I have seen people use $ prefixes and replace them.   I tried but so far, no go.   &lt;/P&gt;

&lt;P&gt;You're way would be less verbose than my original way seeing as how I could have as many as 80 teams in play eventually.   240 line conditionals for each team panel is a lot of source code.    Currently we've only had a handful active teams, but with a hold blocking anything but emergency activity for the moment. &lt;/P&gt;

&lt;P&gt;Is there some way to test my system to establish syntax format?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 19:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475251#M31195</guid>
      <dc:creator>mb1226</dc:creator>
      <dc:date>2020-02-24T19:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart conditional drilldown  to open dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475252#M31196</link>
      <description>&lt;P&gt;&lt;CODE&gt;a url ending in "link"&lt;/CODE&gt; &lt;BR /&gt;
Not &lt;CODE&gt;$links$&lt;/CODE&gt; ?&lt;BR /&gt;
To work eval statement, You need to click the appropriate cell.&lt;BR /&gt;
&lt;CODE&gt;$click.value$&lt;/CODE&gt; is selected 1st left  field, not clicked cell.&lt;BR /&gt;
&lt;CODE&gt;$click.value2$&lt;/CODE&gt; is selected clicked cell value.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Piechart-conditional-drilldown-to-open-dashboard/m-p/475252#M31196</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-25T12:51:05Z</dc:date>
    </item>
  </channel>
</rss>

