<?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 do I make a Drill Down Details when click from bar chart or legend to see each details? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462142#M45518</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Just want to follow up on my case. Do you have any idea on how to apply the drill down method on my case?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 17:10:37 GMT</pubDate>
    <dc:creator>matoulas</dc:creator>
    <dc:date>2020-01-02T17:10:37Z</dc:date>
    <item>
      <title>How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462134#M45510</link>
      <description>&lt;P&gt;I have a serach query as below the bar chart working great as expected.  &lt;/P&gt;

&lt;P&gt;siteid=* location=*&lt;BR /&gt;
 | foreach powerdata{}.plug*{}.* [ eval eachplug&amp;lt;&amp;gt; = mvappend(eachplug&amp;lt;&amp;gt;, "&amp;lt;&amp;gt;=" . '&amp;lt;&amp;gt;') |  fields - &amp;lt;&amp;gt; ]&lt;BR /&gt;
 | foreach eachplug* [ nomv &amp;lt;&amp;gt; |  eval allplugs = mvappend(allplugs, "plug=&amp;lt;&amp;gt;, " . &amp;lt;&amp;gt;) |  fields - &amp;lt;&amp;gt; ]&lt;BR /&gt;
 | mvexpand allplugs&lt;BR /&gt;
 | rename allplugs AS _raw&lt;BR /&gt;
 | kv&lt;BR /&gt;
 | timechart limit=0 max(current) AS max_current BY plugname&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/276746-bar-chart.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;In addition, next step I would like to be able to click on individual plug name on the bar chart or from the legend label for the drill down details. As of now when I click it. It said no result found. Please I really need help and thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462134#M45510</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-09-30T03:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462135#M45511</link>
      <description>&lt;P&gt;Here is some good documentation on this.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToSearch"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToSearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Basically, you will need to add a  tag to your xml, something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown target="_blank"&amp;gt;
   &amp;lt;link&amp;gt;&amp;lt;![CDATA[
      /app/search/search?q=search|makeresults|eval "click.name"="$click.name$", "click2.name"="$click2.name$", "click.value"="$click.value$", "click.value2"="$click.value2$"
   ]]&amp;gt;&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Dec 2019 18:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462135#M45511</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-14T18:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462136#M45512</link>
      <description>&lt;P&gt;Based on the above search query in my case. How would I do it for the drill down? I've try but doesn't work the way it supposed.  Can you please help? &lt;/P&gt;

&lt;P&gt;See a link for JSON raw data that send to splunk&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/757905/how-to-rename-label-in-splunk-legend-that-not-effe.html"&gt;https://answers.splunk.com/answers/757905/how-to-rename-label-in-splunk-legend-that-not-effe.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462136#M45512</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2019-12-17T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462137#M45513</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Just want to follow up any idea on how to apply the drill down in my case.  I really need help to get this to work. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 16:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462137#M45513</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2019-12-20T16:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462138#M45514</link>
      <description>&lt;P&gt;@matoulas if you want chart drilldown to pick up legend value then you actually need to pick the values of the split-by field which is plugname as per your question. You can use &lt;CODE&gt;$click.name2$&lt;/CODE&gt; to access column name form the timechart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;set token="tokPlugName"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere example based on Splunk's _internal index which renames &lt;CODE&gt;component&lt;/CODE&gt; as &lt;CODE&gt;plugname&lt;/CODE&gt; to mimic the drilldown scenario you have requested.&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/8065i4400F2162922B673/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
In the screenshot when HttpListener is clicked in the main timechart, it shows the trending in subsequent timechart only for the clicked Legend. PS: &lt;CODE&gt;depends&lt;/CODE&gt; token has been used to keep the drilldown chart hidden until a legend in the main chart is clicked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Timechart drilldown by splitby field&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 sourcetype=splunkd log_level!=INFO 
| rename component as plugname 
| timechart limit=0 useother=false count by plugname&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.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;log&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.lineWidth"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokPlugName"&amp;gt;$click.name2$&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 depends="$tokPlugName$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Trending for $tokPlugName$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!=INFO 
| rename component as plugname 
| search plugname=$tokPlugName|s$
| timechart count&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&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;</description>
      <pubDate>Sat, 21 Dec 2019 16:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462138#M45514</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-21T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462139#M45515</link>
      <description>&lt;P&gt;Refer to Splunk Documentation to understand various drilldown tokens available for different visualizations: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#chart_2"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#chart_2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 16:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462139#M45515</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-21T16:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462140#M45516</link>
      <description>&lt;P&gt;In my case for the drill down, how do I define the plugname to match the exact plug when click on the legend or bar chart.  I try to used your method as of now when I click on the legend it's only know the plugname, but didn't know which plugname belong to the exact plug in JSON.  See below link is my raw JSON  that sent to Splunk.  I really need help to make it work for my case of the drill down.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/757905/how-to-rename-label-in-splunk-legend-that-not-effe.html"&gt;https://answers.splunk.com/answers/757905/how-to-rename-label-in-splunk-legend-that-not-effe.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 18:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462140#M45516</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2019-12-27T18:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462141#M45517</link>
      <description>&lt;P&gt;If I used this method my drill down is working as expected&lt;/P&gt;

&lt;P&gt;This is the drill down serach quey&lt;/P&gt;

&lt;P&gt;| search sourcetype="powerdata", location="$location$", siteid="$siteid$" | timechart max("powerdata{}.$click.name2${}.current") as current by powerdata{}.$click.name2${}.plugname&amp;amp;display.general.type=visualizations&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/276841-chart-with-drilldown.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;What I want is to make the drill down work with the plugname on the legend as the below search query&lt;/P&gt;

&lt;P&gt;This is my search query&lt;/P&gt;

&lt;P&gt;siteid= location=&lt;BR /&gt;
| foreach powerdata{}.plug*{}. [ eval eachplug&amp;lt;&amp;gt; = mvappend(eachplug&amp;lt;&amp;gt;, "&amp;lt;&amp;gt;=" . '&amp;lt;&amp;gt;') | fields - &amp;lt;&amp;gt; ]&lt;BR /&gt;
| foreach eachplug [ nomv &amp;lt;&amp;gt; | eval allplugs = mvappend(allplugs, "plug=&amp;lt;&amp;gt;, " . &amp;lt;&amp;gt;) | fields - &amp;lt;&amp;gt; ]&lt;BR /&gt;
| mvexpand allplugs&lt;BR /&gt;
| rename allplugs AS _raw&lt;BR /&gt;
| kv&lt;BR /&gt;
| timechart limit=0 max(current) AS max_current BY plugname&lt;/P&gt;

&lt;P&gt;I need to used this method and how do I apply this method for the drill down? &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/276842-drilldown-with-plugname.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462141#M45517</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-09-30T03:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462142#M45518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Just want to follow up on my case. Do you have any idea on how to apply the drill down method on my case?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462142#M45518</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-01-02T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462143#M45519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Just want to follow up on my case. Did anyone have any idea on how to apply the drill down method on my case? I really need help. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462143#M45519</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-01-02T17:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Drill Down Details when click from bar chart or legend to see each details?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462144#M45520</link>
      <description>&lt;P&gt;Hi, I'm still need your help to apply this drill down in my case.  I still don't know how to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 20:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-a-Drill-Down-Details-when-click-from-bar-chart-or/m-p/462144#M45520</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-01-03T20:43:28Z</dc:date>
    </item>
  </channel>
</rss>

