<?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: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476200#M133750</link>
    <description>&lt;P&gt;@pgadhari, &lt;BR /&gt;
easiest method is to add an additional token for display . Updated the answer , try and let me know&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 12:44:48 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-11-07T12:44:48Z</dc:date>
    <item>
      <title>Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476195#M133745</link>
      <description>&lt;P&gt;I have a pie chart drilldown wherein when I click on each slice, the drilldown panel shows the timechart for those events. By default, when the page loads the pie chart, the drill down panel shows message as "search is waiting for input", and then when I click on each slice of pie, it shows the timechart for that pie slice. &lt;/P&gt;

&lt;P&gt;I want to show all the values of piechart slice in the timechart drilldown panel, when the page loads. After that, based on click of slice, that particular slice data should load. I do not want to use "row depends".&lt;/P&gt;

&lt;P&gt;In the first image - it should show timechart for all slices by default when page loads, instead of showing "search is waiting for input" ?&lt;/P&gt;

&lt;P&gt;Attaching screenshots for your reference. Please help to achieve this ?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7902iAC1D9EFEB241EB8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7903i08B9BD898ED7708D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476195#M133745</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-11-06T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476196#M133746</link>
      <description>&lt;P&gt;@pgadhari,&lt;/P&gt;

&lt;P&gt;Set the token you are using to filter the drilldown to "*" using the &lt;CODE&gt;init&lt;/CODE&gt; on page load.&lt;/P&gt;

&lt;P&gt;Here is a run anywhere example&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated:&lt;/STRONG&gt; with display token&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;init&amp;gt;
    &amp;lt;set token="tok_value"&amp;gt;*&amp;lt;/set&amp;gt;
    &amp;lt;set token="display_token"&amp;gt;All&amp;lt;/set&amp;gt;
  &amp;lt;/init&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 earliest=-15m|stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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.drilldown"&amp;gt;all&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;set token="tok_value"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;set token="display_token"&amp;gt;$click.value$&amp;lt;/set&amp;gt;

        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Timechart for $display_token$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=$tok_value$ earliest=-15m|timechart count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&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;Note : If you are using same search in the drilldown, you can use &lt;CODE&gt;base search&lt;/CODE&gt; and post processing.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476196#M133746</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-11-06T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476197#M133747</link>
      <description>&lt;P&gt;Thanks. It is working as expected. But when we display the token value in the Panel title, it shows as "*", would it be possible to give some name like "ALL" to it ? instead of showing "Timechart for *" ? &lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 04:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476197#M133747</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-11-07T04:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476198#M133748</link>
      <description>&lt;P&gt;some how in my previous comment "/&lt;EM&gt;" is not visible ? I need to show "ALL" instead of star sign (/&lt;/EM&gt;) in the panel title ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 04:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476198#M133748</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-11-07T04:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476199#M133749</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;in the panel title it shows "Timechart for *", instead of * sign, I want to show "Timechart for ALL", is that possible ?

Somehow in my previous comments star character is not getting displayed.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 04:46:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476199#M133749</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-11-07T04:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476200#M133750</link>
      <description>&lt;P&gt;@pgadhari, &lt;BR /&gt;
easiest method is to add an additional token for display . Updated the answer , try and let me know&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 12:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476200#M133750</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-11-07T12:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476201#M133751</link>
      <description>&lt;P&gt;Great this is working. Actually, last thing, I added a Month Timepicker to the page, wherein I have to show the events for that particular month like Nov-2019, Oct-2019 etc. Now the problem is when I change the Month, I want to reset the timechart panel to show all the pages instead of the pie clicked last time for that month. As of now, it is showing the last pie clicked values, unless I refresh the page. &lt;/P&gt;

&lt;P&gt;I tried putting change condition for unsetting the "tok_value" token inside the time input, but somehow it is not working, as it is resetting the tok_value token itself and the panel is showing as "Waiting for input" . Please help ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476201#M133751</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2020-09-30T02:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476202#M133752</link>
      <description>&lt;P&gt;@renjith.nair - can you reply on my above comment please ? I want to reset the token, so that when I change the Month, it should show ALL events of the piechart ?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 10:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476202#M133752</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-11-10T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk pie chart drilldown to show all values for slices, in timechart by default when page loads ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476203#M133753</link>
      <description>&lt;P&gt;@pgadhari ,&lt;BR /&gt;
Just set the token to * on the change event of your month input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="token_month"&amp;gt;
      &amp;lt;label&amp;gt;Month&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Nov-2019"&amp;gt;Nov-2019&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Oct-2019"&amp;gt;Oct-2019&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;Nov-2019&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;Nov-2019&amp;lt;/initialValue&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;set token="tok_value"&amp;gt;*&amp;lt;/set&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the working example. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Pie Chart Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="tok_value"&amp;gt;*&amp;lt;/set&amp;gt;
    &amp;lt;set token="display_token"&amp;gt;All&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="token_month"&amp;gt;
      &amp;lt;label&amp;gt;Month&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Nov-2019"&amp;gt;Nov-2019&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Oct-2019"&amp;gt;Oct-2019&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;Nov-2019&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;Nov-2019&amp;lt;/initialValue&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;set token="tok_value"&amp;gt;*&amp;lt;/set&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Data for $token_month$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal earliest=-15m|stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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.drilldown"&amp;gt;all&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;set token="tok_value"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;set token="display_token"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Timechart for $display_token$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=$tok_value$ earliest=-15m|timechart count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please do upvote/accept if its working for you.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 11:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-pie-chart-drilldown-to-show-all-values-for-slices-in/m-p/476203#M133753</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-11-10T11:45:01Z</dc:date>
    </item>
  </channel>
</rss>

