<?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: Custom drilldown search not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309624#M92878</link>
    <description>&lt;P&gt;SPL-163158 is the bug number&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jan 2019 20:25:15 GMT</pubDate>
    <dc:creator>davebo1896</dc:creator>
    <dc:date>2019-01-28T20:25:15Z</dc:date>
    <item>
      <title>Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309616#M92870</link>
      <description>&lt;P&gt;On a dashboard I have a panel with the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="perfmon" counter="% Processor Time" host!="HOST1*" host!="HOST2" host!="HOST3"
| bucket _time span=35m
| stats avg(Value) AS AVERAGE count(Value) AS INSTANCES by host
| where AVERAGE &amp;gt; 25
| where INSTANCES &amp;gt;= 2
| eval Occurances=Round(INSTANCES/2,0)
| table host Occurances
| head 10
| sort Occurances
| reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just discovered drilldowns, so I set it to Link to Search (Custom) new tab.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="perfmon" counter="% Processor Time" host="$click.value2$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I click the left most column (host), and it all I see is "Loading...". I inspect Chrome's console and I see "malformed Uri" error. Comparing the URL to that of a normal search and it seems a bit off.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://MYSPLKSERVER/en-US/app/MYAPP/search?q=index=%22perfmon%22%20counter=%22%%20Processor%20Time%22%20host=%22mypchere%22&amp;amp;earliest=-24h@h&amp;amp;latest=now" target="test_blank"&gt;https://MYSPLKSERVER/en-US/app/MYAPP/search?q=index=%22perfmon%22%20counter=%22%%20Processor%20Time%22%20host=%22mypchere%22&amp;amp;earliest=-24h@h&amp;amp;latest=now&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;vs a regular search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://MYSPLKSERVER/en-US/app/MYAPP/search?q=search%20index%3D%22perfmon%22%20counter%3D%22%25%20Processor%20Time%22%20host%3Dmypchere&amp;amp;sid=12345.67890&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-24h%40h&amp;amp;latest=now" target="test_blank"&gt;https://MYSPLKSERVER/en-US/app/MYAPP/search?q=search%20index%3D%22perfmon%22%20counter%3D%22%25%20Processor%20Time%22%20host%3Dmypchere&amp;amp;sid=12345.67890&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=-24h%40h&amp;amp;latest=now&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think it's missing &lt;STRONG&gt;q=search&lt;/STRONG&gt; and is not encoding the URL properly (equal signs specifically). My version is 7.0 for the server.&lt;/P&gt;

&lt;P&gt;I've resorted to just using a URL (to create the search manually), but that's really not ideal.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 22:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309616#M92870</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2018-02-22T22:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309617#M92871</link>
      <description>&lt;P&gt;It seems that splunk does not url-encode the % character on drilldown. That looks like a bug, a quick fix is to do it yourself. Edit the Simple XML of your dashboard (Edit - Source) and find the line where it says&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;link target="_blank"&amp;gt;search?q=index="perfmon" counter="% Processor Time" host="$click.value2$"&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the percent sign to its url encoded value &lt;CODE&gt;%25&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;link target="_blank"&amp;gt;search?q=index="perfmon" counter="%25 Processor Time" host="$click.value2$"&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And it should work as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 10:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309617#M92871</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2018-02-23T10:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309618#M92872</link>
      <description>&lt;P&gt;I'm experiencing the same problem with having upgraded to 7.2.1 (newest version of splunk as of this writing)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309618#M92872</guid>
      <dc:creator>nickdewijer</dc:creator>
      <dc:date>2018-11-13T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309619#M92873</link>
      <description>&lt;P&gt;If you have a support entitlement, you could file a bug report.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 12:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309619#M92873</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2018-11-13T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309620#M92874</link>
      <description>&lt;P&gt;Try the following which has URL Encoding for Quotes, Spaces and Percent:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;link target="_blank"&amp;gt;search?q=index=%22perfmon%22%20counter=%22%2525%20Processor%20Time%22%20host=%22$click.value2$%22&amp;amp;amp;earliest=-24h@h&amp;amp;amp;latest=now&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Moreover, if you are on &lt;CODE&gt;Splunk Enterprise 6.6&lt;/CODE&gt; or higher you do not need to code Drilldown, this feature is available through UI Edit itself. Which implies if you create a &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/DrilldownLinkToSearch#Link_to_custom_search_example"&gt;drilldown link to search via UI&lt;/A&gt;, you do not have to worry about URL Encoding as Splunk will do it for you. Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 13:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309620#M92874</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-11-13T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309621#M92875</link>
      <description>&lt;P&gt;IIRC, quotes and spaces are encoded correctly on drilldown regardless of what you set in Simple XML - only percent isn't. I don't know whether using the UI editor makes a difference (if it encodes the url on writing it to Simple XML, it could make a difference - otherwise it shouldn't).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 10:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309621#M92875</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2018-11-14T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309622#M92876</link>
      <description>&lt;P&gt;%2525 in simplexml is a workaround (as of 7.2.3)&lt;BR /&gt;
You can also replace % with %25 in the UI editing view&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 22:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309622#M92876</guid>
      <dc:creator>davebo1896</dc:creator>
      <dc:date>2019-01-17T22:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309623#M92877</link>
      <description>&lt;P&gt;I ran into this issue in the UI for Splunk 7.0.0 and had to manual perform the URL encoding, as recommended here...  that is, when adding a search string to the panel to define a custom drill-down action  (Is there another path that obviates the need to perform manual URL encoding?)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309623#M92877</guid>
      <dc:creator>davidcaccia</dc:creator>
      <dc:date>2019-01-24T19:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom drilldown search not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309624#M92878</link>
      <description>&lt;P&gt;SPL-163158 is the bug number&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-drilldown-search-not-working/m-p/309624#M92878</guid>
      <dc:creator>davebo1896</dc:creator>
      <dc:date>2019-01-28T20:25:15Z</dc:date>
    </item>
  </channel>
</rss>

