<?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: drilldown on a single value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289083#M40400</link>
    <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Yeah, drilldowneditor will change it.&lt;/P&gt;

&lt;P&gt;Can you please share panel's xml code? So I can check whether it is due to special character or not.&lt;/P&gt;

&lt;P&gt;Please use &lt;CODE&gt;101010&lt;/CODE&gt; when you share code.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 17:59:33 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-11-22T17:59:33Z</dc:date>
    <item>
      <title>drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289069#M40386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a single value in my dashboard, i want users to be able to drilldown on this value. When they do a new search has to be executed. We run version 6.5.2 so we dont yet have the drilldowneditor.&lt;/P&gt;

&lt;P&gt;I thougt i just could add this to the source:&lt;/P&gt;

&lt;P&gt;drilldown&amp;gt;&lt;BR /&gt;
          &lt;LINK target="_blank" /&gt;search?q=index=zzz earliest=-h sourcetype= "xxx" OR sourcetype="yyyy"&lt;BR /&gt;&lt;BR /&gt;
| eval eA_Z=strptime(A_Z,"%Y-%m-%d %H:%M:%S.%N") &lt;BR /&gt;
| eval eD_A_I=coalesce(strptime(eD_A_I, "%Y-%m-%d %H:%M:%S.%N"),now()) &lt;BR /&gt;
| eval G_w =floor((eD_A_I-eA_Z)/86400) &lt;BR /&gt;
| search G_w  &amp;lt;= 14&lt;BR /&gt;
        &lt;/P&gt;

&lt;P&gt;But this does not work. Why not?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289069#M40386</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-09-29T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289070#M40387</link>
      <description>&lt;P&gt;Hi Mike6960,&lt;BR /&gt;
why do you want to insert search in drilldown?&lt;BR /&gt;
create a new dashboard with your search and launch it in drilldown&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;link&amp;gt;my_secondary_dashboard?TimeDa=$Time.earliest$&amp;amp;amp;TimeA=$Time.latest$&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From a Single Value you don't have parameters to pass in drilldown, but anyway I suggest to pass time period.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289070#M40387</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-17T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289071#M40388</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;Because i have 8 single values in mu dashboard, by passing it down to an 'new' dashboard i would have to maken 8 new dashboards...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289071#M40388</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-11-17T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289072#M40389</link>
      <description>&lt;P&gt;Your Single Values have the same search with some specific filter or they are completely different?&lt;BR /&gt;
if different you have to create one secondary dashboard for each type of dashboard&lt;BR /&gt;
If same search, put in secondary dashboard panels with the same search and pass as parameter the specific filter of Single Value.&lt;BR /&gt;
An example:&lt;BR /&gt;
if you have five SVs with five levels of risk, put in the secondary dashboard a search like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_search risk_level=$level$
|.....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in SV1 drilldowns put&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
   &amp;lt;link&amp;gt;my_secondary_dashboard?level=1&amp;amp;amp;TimeDa=$Time.earliest$&amp;amp;amp;TimeA=$Time.latest$&amp;lt;/link&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and so on&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289072#M40389</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-17T13:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289073#M40390</link>
      <description>&lt;P&gt;So in short, its not possible to render a basic search by clicking on a single-value without making a new dashboard?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289073#M40390</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-11-17T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289074#M40391</link>
      <description>&lt;P&gt;when you say basic render you're meaning to open the search&amp;amp;reporting dashboard with the same search? in other words like the command "Open in search"?&lt;/P&gt;

&lt;P&gt;See in Dashboard Examples how to do this in "Drilldown to search" example.&lt;BR /&gt;
In simple words put "All" in drilldown toption name&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289074#M40391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-17T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289075#M40392</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you please try below drilldown code in Single View?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" | stats count&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt; &amp;lt;![CDATA[ search?q=index=zzz earliest=-h sourcetype= "xxx" OR sourcetype="yyyy" | eval eA_Z=strptime(A_Z,"%25Y-%25m-%25d %25H:%25M:%25S.%25N") | eval eD_A_I=coalesce(strptime(eD_A_I, "%25Y-%25m-%25d %25H:%25M:%25S.%25N"),now()) | eval G_w =floor((eD_A_I-eA_Z)/86400) | search G_w &amp;lt;= 14&amp;amp;earliest=-15m&amp;amp;latest=now ]]&amp;gt; &amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have used your search in drilldown. So just copy drilldown code and place into your dashboard.&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289075#M40392</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-17T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289076#M40393</link>
      <description>&lt;P&gt;Hai Kamlesh, What does this do?&lt;BR /&gt;
         &lt;SEARCH&gt;&lt;BR /&gt;
           &lt;QUERY&gt;index="_internal" | stats count&lt;/QUERY&gt;&lt;BR /&gt;
Is this a dummy search where i have to put my own initial search? I dont understand the "_internal"&lt;BR /&gt;
How do you come by the '25Y-%25m-%25d %25H' , what does the number 25 mean?&lt;/SEARCH&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289076#M40393</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-09-29T16:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289077#M40394</link>
      <description>&lt;P&gt;Hi @Mike6960,&lt;/P&gt;

&lt;P&gt;Yes, &lt;CODE&gt;index="_internal" | stats count&lt;/CODE&gt; is a dummy search.&lt;/P&gt;

&lt;P&gt;As you go with your OLD drilldown, you will find javascript error in console (after drilldown page).&lt;/P&gt;

&lt;P&gt;I have replaced special character with HTML URL encoding character. In our case, for datetime format, &lt;CODE&gt;%&lt;/CODE&gt; is replaced with &lt;CODE&gt;%25&lt;/CODE&gt;;  &lt;/P&gt;

&lt;P&gt;So I  format &lt;CODE&gt;"%Y-%m-%d %H:%M:%S.%N"&lt;/CODE&gt; to &lt;CODE&gt;"%25Y-%25m-%25d %25H:%25M:%25S.%25N"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;please check below link for more information.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.w3schools.com/tags/ref_urlencode.asp"&gt;https://www.w3schools.com/tags/ref_urlencode.asp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289077#M40394</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-21T07:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289078#M40395</link>
      <description>&lt;P&gt;Ok, and what is the purpose of:&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289078#M40395</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-11-21T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289079#M40396</link>
      <description>&lt;P&gt;This encoding will not break drilldown URL and execute as per expectation. &lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289079#M40396</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-21T07:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289080#M40397</link>
      <description>&lt;P&gt;I am trying to understand, so i can replicate it next time. How do you come by: !DATA in your search? Why did you use;&lt;BR /&gt;
G_w &amp;lt;= 14&amp;amp;earliest=-15m&amp;amp;latest=now  ?&lt;BR /&gt;
I want the result that have &amp;lt;= 14 days. I dont understand what you posted&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289080#M40397</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-11-21T07:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289081#M40398</link>
      <description>&lt;P&gt;is not a part of search.&lt;BR /&gt;
 is used for creating drilldown link with special character.&lt;/P&gt;

&lt;P&gt;Some characters have special meaning in Simple XML files. To prevent the source code parser from treating them as special characters, wrap them in  tags.&lt;/P&gt;

&lt;P&gt;The search used in my code is from your question.&lt;/P&gt;

&lt;P&gt;drilldown&amp;gt;&lt;BR /&gt;
search?q=index=zzz earliest=-h sourcetype= "xxx" OR sourcetype="yyyy" | eval eA_Z=strptime(A_Z,"%Y-%m-%d %H:%M:%S.%N") | eval eD_A_I=coalesce(strptime(eD_A_I, "%Y-%m-%d %H:%M:%S.%N"),now()) | eval G_w =floor((eD_A_I-eA_Z)/86400) | search &lt;STRONG&gt;G_w &amp;lt;= 14&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And &lt;CODE&gt;G_w &amp;lt;= 14&lt;/CODE&gt; is a part of that search and  &lt;CODE&gt;&amp;amp;earliest=-15m&amp;amp;latest=now&lt;/CODE&gt; is the time frame to execute provided search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289081#M40398</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-29T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289082#M40399</link>
      <description>&lt;P&gt;Sadly, still struggling. I used your code but isn't working yet. Is it possible to do this through the drilldowneditor? I tried to use this feature but somehow after saving the search is altered. Is this because the special characters? &lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289082#M40399</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2017-11-22T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: drilldown on a single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289083#M40400</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Yeah, drilldowneditor will change it.&lt;/P&gt;

&lt;P&gt;Can you please share panel's xml code? So I can check whether it is due to special character or not.&lt;/P&gt;

&lt;P&gt;Please use &lt;CODE&gt;101010&lt;/CODE&gt; when you share code.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 17:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drilldown-on-a-single-value/m-p/289083#M40400</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-22T17:59:33Z</dc:date>
    </item>
  </channel>
</rss>

