<?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: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211901#M61979</link>
    <description>&lt;P&gt;Try removing the &lt;CODE&gt;*&lt;/CODE&gt; after search command.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 15:18:14 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-16T15:18:14Z</dc:date>
    <item>
      <title>How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211900#M61978</link>
      <description>&lt;P&gt;I have several pie charts. I would like to drilldown from each of the pie charts&lt;BR /&gt;
to the same table in a different view page.&lt;/P&gt;

&lt;P&gt;So far I am able to drilldown any value of the piechart to separate tables in the other&lt;BR /&gt;
page. But to save space, I would like to drilldown to the same table. I am trying&lt;BR /&gt;
this conditional OR statement, but it seems not to work. Is it the case that&lt;BR /&gt;
for the search to work, all the tokens in the search should have a value &lt;BR /&gt;
assigned to it? How to assign a default value to a token? or do I have to use &lt;BR /&gt;
some eval statement here?&lt;/P&gt;

&lt;P&gt;This is the PieChart in View 1 (Similarly I have several other piecharts)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Traffic Locations&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;index=location source=traffic_locations | fields state_name | top 20 state_name&amp;lt;/searchString&amp;gt;
     &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxResultCount"&amp;gt;200000&amp;lt;/option&amp;gt;   

   &amp;lt;drilldown&amp;gt;
    &amp;lt;!--&amp;lt;set token="state_name"&amp;gt;$click.value$&amp;lt;/set&amp;gt;--&amp;gt;
          &amp;lt;link&amp;gt;
           &amp;lt;![CDATA[
        /app/myapp/myview1_2?form.state_name=$click.value$
            ]]&amp;gt;
           &amp;lt;/link&amp;gt;
     &amp;lt;/drilldown&amp;gt;

    &amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is search for the table in View 2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;

      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=location source=traffic_locations 
                | search * (state_name=$form.state_name$ OR zip_code=$form.zip_code$)  &amp;lt;!-- This doesnt work! --&amp;gt;
                | table location, state_name, zip_code, address, quantity  
                | sort by state_name&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumber"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
   &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211900#M61978</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2016-06-16T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211901#M61979</link>
      <description>&lt;P&gt;Try removing the &lt;CODE&gt;*&lt;/CODE&gt; after search command.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211901#M61979</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-16T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211902#M61980</link>
      <description>&lt;P&gt;That doesnt work. "Search is waiting for input.."&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211902#M61980</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2016-06-16T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211903#M61981</link>
      <description>&lt;P&gt;2 things:&lt;/P&gt;

&lt;P&gt;1) You are only passing state_name to view 2.&lt;/P&gt;

&lt;P&gt;2) For performance, your search in view 2 should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=location source=traffic_locations (state_name=$form.state_name$ OR zip_code=$form.zip_code$) | table location, state_name, zip_code, address, quantity | sort by state_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2016 16:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211903#M61981</guid>
      <dc:creator>jconger</dc:creator>
      <dc:date>2016-06-16T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211904#M61982</link>
      <description>&lt;P&gt;Do different pie chart provides different values/token to your drilldown dashboard/panel?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 16:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211904#M61982</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-06-16T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211905#M61983</link>
      <description>&lt;P&gt;Yes, the piecharts shows different columns of the same table in the drilldown.&lt;/P&gt;

&lt;P&gt;For the drilldown I have for piechart1&lt;/P&gt;

&lt;P&gt;/app/myapp/myview1_2?form.state_name=$click.value$&lt;/P&gt;

&lt;P&gt;and then for another piechart &lt;/P&gt;

&lt;P&gt;/app/myapp/myview1_2?form.zip_code=$click.value$&lt;/P&gt;

&lt;P&gt;similarly several more&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211905#M61983</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2020-09-29T09:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211906#M61984</link>
      <description>&lt;P&gt;Based on your example, for two panels in dashboard 1, state_name pie chart and zip_code pie chart, use following as drilldown URL. Basically make sure each drilldown is passing values to all tokens used in your drilldown table search, with default value as *.&lt;/P&gt;

&lt;P&gt;state_name pie chart&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
            &amp;lt;![CDATA[
         /app/myapp/myview1_2?form.state_name=$click.value$&amp;amp;for.zip_code=*
             ]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;zip_code pie chart&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
            &amp;lt;![CDATA[
         /app/myapp/myview1_2?form.state_name=*&amp;amp;for.zip_code=$click.value$
             ]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211906#M61984</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T10:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drilldown from several pie charts in Dashboard1 to the same single table in Dashboard2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211907#M61985</link>
      <description>&lt;P&gt;Your Awesome!&lt;/P&gt;

&lt;P&gt;I also had to change &lt;BR /&gt;
(state_name=$form.state_name$ AND zip_code=$form.zip_code$) &lt;BR /&gt;
from OR to AND.&lt;/P&gt;

&lt;P&gt;This makes sense, but now I need to pass default value for all the other piecharts.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-drilldown-from-several-pie-charts-in-Dashboard1/m-p/211907#M61985</guid>
      <dc:creator>smhsplunk</dc:creator>
      <dc:date>2020-09-29T09:58:20Z</dc:date>
    </item>
  </channel>
</rss>

