<?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: Drill down Single Value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295709#M89225</link>
    <description>&lt;P&gt;I think you require drilldown to a new dashboard with table when Single Value is clicked. Were you able to get &lt;STRONG&gt;Splunk 6.x Dashboard Examples&lt;/STRONG&gt; app? It has examples for most of the concepts required for Simple XML, JS and CSS Extensions, including drilldown event handler. &lt;/P&gt;

&lt;P&gt;Following is a run anywhere search. You need to understand Search Event Handler &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt; (for Splunk 6.5 and above), which is used here to pass on the Single Value result (in my case &lt;STRONG&gt;count&lt;/STRONG&gt;. You should also read about link input in Splunk which allows you to provide internal or external URLs/Links. Most important, refer to the the link here for Splunk Documentation on &lt;STRONG&gt;drilldown event handler&lt;/STRONG&gt;: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#drilldown"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#drilldown&lt;/A&gt;&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 sourcetype=splunkd log_level=ERROR
 | stats count&amp;lt;/query&amp;gt;
      &amp;lt;progress&amp;gt;
        &amp;lt;set token="queryString"&amp;gt;$result.count$&amp;lt;/set&amp;gt;
      &amp;lt;/progress&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="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;https://answers.splunk.com/search.html?q=$queryString$&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/single&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Search Event Handler for 6.4 or previous version will be &lt;STRONG&gt;Preview&lt;/STRONG&gt; instead of &lt;STRONG&gt;Progress&lt;/STRONG&gt;.&lt;BR /&gt;
For custom link within Splunk instance fully qualified path might not be required. Refer to documentation or Splunk 6.x Dashboard Examples.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 21:14:32 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-05-16T21:14:32Z</dc:date>
    <item>
      <title>Drill down Single Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295706#M89222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to drill down a single value.&lt;/P&gt;

&lt;P&gt;I have a single value named High Risk and I created a table now I want to drill down.. If I click the High risk single value the table have to open.&lt;/P&gt;

&lt;P&gt;How to do it?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 13:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295706#M89222</guid>
      <dc:creator>dchalasani</dc:creator>
      <dc:date>2017-05-16T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down Single Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295707#M89223</link>
      <description>&lt;P&gt;Do you want to display the table when Single Value is clicked or Do you have a token that you need to pass on to the table from Single Value?&lt;/P&gt;

&lt;P&gt;For the first piece refer to &lt;STRONG&gt;Null Search Swapper&lt;/STRONG&gt; example in the &lt;STRONG&gt;Splunk 6.x Dashboard Examples&lt;/STRONG&gt; App, for understanding the use of depends and rejects to hide/show a dashboard content based on whether the token is set or unset. For the Drilldown you can either refer to &lt;STRONG&gt;Drilldown Single Value&lt;/STRONG&gt; example or any other Drilldown example (like &lt;STRONG&gt;Contextual Drilldown(In-Page)&lt;/STRONG&gt; which explains coding of Drilldown event handler and pass on the token which you require.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295707#M89223</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-16T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down Single Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295708#M89224</link>
      <description>&lt;P&gt;Can you help me what are the changes I have to make and where the table dashboard link have to paste? for drill down single value &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;earliest&amp;gt;-60m@m&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="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="rangeColors"&amp;gt;["0x555","0xd93f3c"]&amp;lt;/option&amp;gt;
    &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
    &amp;lt;option name="underLabel"&amp;gt;High risk&amp;lt;/option&amp;gt;
    &amp;lt;option name="unit"&amp;gt;K&amp;lt;/option&amp;gt;
    &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="useThousandSeparators"&amp;gt;0&amp;lt;/option&amp;gt;
  &amp;lt;/single&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;single&amp;gt;
    &amp;lt;search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 14:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295708#M89224</guid>
      <dc:creator>dchalasani</dc:creator>
      <dc:date>2017-05-16T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down Single Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295709#M89225</link>
      <description>&lt;P&gt;I think you require drilldown to a new dashboard with table when Single Value is clicked. Were you able to get &lt;STRONG&gt;Splunk 6.x Dashboard Examples&lt;/STRONG&gt; app? It has examples for most of the concepts required for Simple XML, JS and CSS Extensions, including drilldown event handler. &lt;/P&gt;

&lt;P&gt;Following is a run anywhere search. You need to understand Search Event Handler &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt; (for Splunk 6.5 and above), which is used here to pass on the Single Value result (in my case &lt;STRONG&gt;count&lt;/STRONG&gt;. You should also read about link input in Splunk which allows you to provide internal or external URLs/Links. Most important, refer to the the link here for Splunk Documentation on &lt;STRONG&gt;drilldown event handler&lt;/STRONG&gt;: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#drilldown"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#drilldown&lt;/A&gt;&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 sourcetype=splunkd log_level=ERROR
 | stats count&amp;lt;/query&amp;gt;
      &amp;lt;progress&amp;gt;
        &amp;lt;set token="queryString"&amp;gt;$result.count$&amp;lt;/set&amp;gt;
      &amp;lt;/progress&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="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;https://answers.splunk.com/search.html?q=$queryString$&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/single&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Search Event Handler for 6.4 or previous version will be &lt;STRONG&gt;Preview&lt;/STRONG&gt; instead of &lt;STRONG&gt;Progress&lt;/STRONG&gt;.&lt;BR /&gt;
For custom link within Splunk instance fully qualified path might not be required. Refer to documentation or Splunk 6.x Dashboard Examples.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 21:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drill-down-Single-Value/m-p/295709#M89225</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-16T21:14:32Z</dc:date>
    </item>
  </channel>
</rss>

