<?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 After clicking on any row in a table of results produced using iplocation, why does it drill down to a search that returns 0 results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275488#M83101</link>
    <description>&lt;P&gt;Hi there&lt;/P&gt;

&lt;P&gt;I have Splunk 6.4.0. I have a table with count of countries based on IP addresses. Search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = my_index
| iplocation ipaddr
| stats count by Country
| sort count desc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Country        count
United States   180
China            26
Germany        24
Japan            17
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which is great. But when I click any row, I am redirected to the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = my_index
| search Country="United States"
| iplocation ipaddr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shows 0 results. If I move the search line after the iplocation line, then the search shows the correct count (because the Country field was created by the iplocation command). How can I fix this default behavior without manually changing thesearch string?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 16:04:27 GMT</pubDate>
    <dc:creator>sergiyyarinovsk</dc:creator>
    <dc:date>2016-04-05T16:04:27Z</dc:date>
    <item>
      <title>After clicking on any row in a table of results produced using iplocation, why does it drill down to a search that returns 0 results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275488#M83101</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;

&lt;P&gt;I have Splunk 6.4.0. I have a table with count of countries based on IP addresses. Search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = my_index
| iplocation ipaddr
| stats count by Country
| sort count desc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Country        count
United States   180
China            26
Germany        24
Japan            17
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which is great. But when I click any row, I am redirected to the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = my_index
| search Country="United States"
| iplocation ipaddr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shows 0 results. If I move the search line after the iplocation line, then the search shows the correct count (because the Country field was created by the iplocation command). How can I fix this default behavior without manually changing thesearch string?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 16:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275488#M83101</guid>
      <dc:creator>sergiyyarinovsk</dc:creator>
      <dc:date>2016-04-05T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: After clicking on any row in a table of results produced using iplocation, why does it drill down to a search that returns 0 results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275489#M83102</link>
      <description>&lt;P&gt;I think you've stumbled across a bug with the drilldown system. &lt;/P&gt;

&lt;P&gt;As for changing the default, there is no way to change the way that drilldown works on the search page. &lt;/P&gt;

&lt;P&gt;The only work-around I can think of is: make a dashboard with that search. You can then use "dynamic drilldown" which you can specify in the XML to craft the exact search that you want to run given a particular value for Country.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275489#M83102</guid>
      <dc:creator>arobbins_splunk</dc:creator>
      <dc:date>2016-04-05T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: After clicking on any row in a table of results produced using iplocation, why does it drill down to a search that returns 0 results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275490#M83103</link>
      <description>&lt;P&gt;Actually yeah. Good point &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But I have already done that with dynamic drilldown. Thanks anyway. I will provide my example for another users:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Logins by country&amp;lt;/title&amp;gt;
    &amp;lt;searchString&amp;gt;
      index = my_index
      | iplocation ipaddr
      | stats count by Country
      | sort count desc
    &amp;lt;/searchString&amp;gt;
    ...
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link&amp;gt;
        &amp;lt;![CDATA[
            /app/my_splunk_app/search?q=search%20index%20%3D%20my_index ... %20%7C%20search%20Country%20%3D%20"$row.Country$" ...
        ]]&amp;gt;
      &amp;lt;/link&amp;gt;
  &amp;lt;/drilldown&amp;gt;
  ... 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2016 09:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/After-clicking-on-any-row-in-a-table-of-results-produced-using/m-p/275490#M83103</guid>
      <dc:creator>sergiyyarinovsk</dc:creator>
      <dc:date>2016-04-06T09:28:27Z</dc:date>
    </item>
  </channel>
</rss>

