<?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 drill down from one panel to another in the same dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432503#M28530</link>
    <description>&lt;P&gt;Strangely it should work. Have you changed the token name and are using correct one? Which version of Splunk are you on? Can you share simple XML code and what is not working.&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 14:18:44 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-05-31T14:18:44Z</dc:date>
    <item>
      <title>How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432498#M28525</link>
      <description>&lt;P&gt;I have a dashboard which have panel 1 which displays job start time, end time and time duration of the job run. Now I want to create another panel i.e. panel 2  in the same dashboard where clicking on the job in panel 1 will display that job start time, end time and time duration of the job run for last 7 days. Please help on the same.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 08:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432498#M28525</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432499#M28526</link>
      <description>&lt;P&gt;@abhi04 , if you are on &lt;CODE&gt;Splunk 6.6 or higher you can use Interactive Drilldown Option from Splunk UI&lt;/CODE&gt; by editing the chart and set the token for selected Job Name using predefined token &lt;CODE&gt;$row.&amp;lt;yourJobNameField&amp;gt;$&lt;/CODE&gt;. This token will pick the job name from the Row that you click on (irrespective of the column). Following is the Splunk Docs reference for default &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#table_.28event_tokens.29"&gt;Table Drilldown&lt;/A&gt; tokens. &lt;CODE&gt;For previous versions the same can be done only through Simple XML&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;You can get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; app to get several examples of Drilldown capabilities within Splunk, including your use case.&lt;/P&gt;

&lt;P&gt;Following is a run anywhere dashboard based on &lt;CODE&gt;Splunk's _internal&lt;/CODE&gt; index to try out the drilldown from One Panel to Another where &lt;CODE&gt;component&lt;/CODE&gt; name from Panel 1 is passed on to Panel 2 on Drilldown and displays the trending of INFO ERROR and WARN events over last 7 days in a timechart.&lt;/P&gt;

&lt;P&gt;In the example following pieces have been added for enabling drilldown for selected component.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;

        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokComponent"&amp;gt;$row.component$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then the search query in Panel 2 uses token $tokComponent$&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=* component="$tokComponent$"
  | timechart count by log_level&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: &lt;CODE&gt;depends&lt;/CODE&gt; attribute has been added to second row with Drilldown panel which hides the Panel until &lt;CODE&gt;$tokComponent$&lt;/CODE&gt; is set.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row depends="$tokComponent$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Drilldown from one dashboard to another&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Panel 1 - Pick Component to see trending&amp;lt;/title&amp;gt;
      &amp;lt;input type="time" token="tokTime1" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;default&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;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=*
| dedup log_level component
| stats count as eventcount min(_time) as earliestTime max(_time) as latestTime dc(log_level) as distinctCount values(log_level) as log_level by component
| search log_level="INFO" AND distinctCount&amp;gt;1
| eval duration=latestTime-earliestTime
| fieldformat earliestTime=strftime(earliestTime,"%Y-%m-%d %H:%M:%S %p")
| fieldformat latestTime=strftime(latestTime,"%Y-%m-%d %H:%M:%S %p")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime1.latest$&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="count"&amp;gt;20&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="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokComponent"&amp;gt;$row.component$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$tokComponent$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Panel 2 - $tokComponent$ Component Info and Warn Trending&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=* component="$tokComponent$"
| timechart count by log_level&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime1.latest$&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;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;seriesCompare&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;PS: This example uses &lt;CODE&gt;charting.legend.mode&lt;/CODE&gt; as &lt;CODE&gt;seriesCompare&lt;/CODE&gt;. This Chart Configuration option for legends which is available in version 6.6 or higher.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 10:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432499#M28526</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-31T10:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432500#M28527</link>
      <description>&lt;P&gt;Hi Niketnilay,&lt;/P&gt;

&lt;P&gt;The jobname is being extracted using regex.below is the source for the dashboard which is not working.&lt;/P&gt;

&lt;P&gt;DFS IW Batch Job Monitor Dashboard&lt;BR /&gt;
  DFS IW Batch Job Monitor&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="field1"&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-24h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;IW Batch Job Duration&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" "started - time=" | dedup _raw |rex "\w+\/\w+\/\w+\/(?&amp;amp;lt;Job_Name&amp;amp;gt;\w+)\.ksh" | eval StartTime=strftime(_time,"%Y/%m/%d %H:%M:%S") | append [| search index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" ("ended - time=" OR "ENDED - time") | dedup _raw |rex "\w+\/\w+\/\w+\/(?&amp;amp;lt;Job_Name&amp;amp;gt;\w+)\.ksh" | eval EndTime=strftime(_time,"%Y/%m/%d %H:%M:%S")] | transaction Job_Name  |dedup Job_Name | table Job_Name StartTime EndTime duration  |eval Duration_Min= round((duration/60),2) | rename duration AS Duration_Sec&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;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&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;10&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
       &amp;lt;set token="tokComponent"&amp;gt;$row.Job_Name$&amp;lt;/set&amp;gt;
     &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;event&amp;gt;
    &amp;lt;title&amp;gt;Errors&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh"  "error" OR "abort"&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;/event&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Last 7 Days&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" "started - time=" | dedup _raw |rex "\w+\/\w+\/\w+\/(?&amp;amp;lt;Job_Name&amp;amp;gt;\w+)\.ksh" |Job_Name="$tokComponent$"| eval StartTime=strftime(_time,"%Y/%m/%d %H:%M:%S") | append [| search index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" ("ended - time=" OR "ENDED - time") | dedup _raw |rex "\w+\/\w+\/\w+\/(?&amp;amp;lt;Job_Name&amp;amp;gt;\w+)\.ksh" | Job_Name="$tokComponent$"|eval EndTime=strftime(_time,"%Y/%m/%d %H:%M:%S")] | transaction Job_Name  |dedup Job_Name | table Job_Name StartTime EndTime duration  |eval Duration_Min= round((duration/60),2) | rename duration AS Duration_Sec&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;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 11:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432500#M28527</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432501#M28528</link>
      <description>&lt;P&gt;You should try out the two things after the rex command, you are missing &lt;CODE&gt;search&lt;/CODE&gt; keyword for searching Job_Names extracted using rex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...
| rex .....
|search Job_Name="$tokComponent$"
 ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also in the Title for the final panel with table add the token to verify correct Job Name has been picked from Drilldown (I would also prefer if you named &lt;CODE&gt;tokComponent&lt;/CODE&gt; as &lt;CODE&gt;tokJobName&lt;/CODE&gt; instead as it will be more logical.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;title&amp;gt;Details for Job $tokComponent$ for Last 7 Days&amp;lt;/title&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 12:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432501#M28528</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-31T12:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432502#M28529</link>
      <description>&lt;P&gt;Thanks Niketnilay,&lt;/P&gt;

&lt;P&gt;The panel shows up with info but the title wont show when using &lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:07:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432502#M28529</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T13:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432503#M28530</link>
      <description>&lt;P&gt;Strangely it should work. Have you changed the token name and are using correct one? Which version of Splunk are you on? Can you share simple XML code and what is not working.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432503#M28530</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-31T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432504#M28531</link>
      <description>&lt;P&gt;Hi niketnilay,&lt;/P&gt;

&lt;P&gt;It's working now.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 15:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432504#M28531</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drill down from one panel to another in the same dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432505#M28532</link>
      <description>&lt;P&gt;@abhi04 glad it worked! Do up vote the comments that helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 15:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-drill-down-from-one-panel-to-another-in-the-same/m-p/432505#M28532</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-31T15:54:52Z</dc:date>
    </item>
  </channel>
</rss>

