<?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: iplocation/geostats to show events from statistics tab. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308183#M92465</link>
    <description>&lt;P&gt;In a dashboard, you could use the above search as a base search and then do postprocessing to select the country from a dropdown.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 01:05:25 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2018-01-17T01:05:25Z</dc:date>
    <item>
      <title>iplocation/geostats to show events from statistics tab.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308182#M92464</link>
      <description>&lt;P&gt;Hi, I'm trying to view event related to a specific country or city based on the source ip,so i ran the following query.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;index=firewalls | iplocation allfields=true src_ip | stats count by Country City&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;which works fine by giving me a  table like:&lt;/P&gt;

&lt;P&gt;Country |        City    |     count&lt;BR /&gt;
Albania   |    Durres |         5&lt;BR /&gt;
Argentina |       Abel   |           7&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;/P&gt;

&lt;P&gt;when i click any of the city or country to view the events related to that specific region, the search extends like &lt;BR /&gt;
&lt;STRONG&gt;&lt;EM&gt;index=firewalls Country=Albania | iplocation allfields=true src_ip |&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;which return zero results because the filed Country comes before iplocation command. i know i can search it manually by entering it at the end of the search query like.&lt;BR /&gt;
&lt;STRONG&gt;&lt;EM&gt;index=firewalls | iplocation allfields=true src_ip |search Country=Albania&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but im running the query on a dsashboard which returns the count for each country ,city and i want to view the event directly by clicking the respective country from the dashboard. How can i do that ? Pls advice&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 21:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308182#M92464</guid>
      <dc:creator>prithvi08</dc:creator>
      <dc:date>2018-01-16T21:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation/geostats to show events from statistics tab.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308183#M92465</link>
      <description>&lt;P&gt;In a dashboard, you could use the above search as a base search and then do postprocessing to select the country from a dropdown.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 01:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308183#M92465</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-01-17T01:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation/geostats to show events from statistics tab.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308184#M92466</link>
      <description>&lt;P&gt;The above search woudnt result in a table and do mean to say selecting country  from dropdown list  ? how do i do that ? would it eventually let me see the events related to it ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 03:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308184#M92466</guid>
      <dc:creator>prithvi08</dc:creator>
      <dc:date>2018-01-17T03:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation/geostats to show events from statistics tab.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308185#M92467</link>
      <description>&lt;P&gt;hey try this XML just plug and play&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;my dashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;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@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;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=firewalls | iplocation allfields=true src_ip | stats count by Country City&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;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;link target="_blank"&amp;gt;search?q=index=firewalls | iplocation allfields=true src_ip | search Country="$row.Country$"&amp;amp;amp;earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&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;let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308185#M92467</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-17T08:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation/geostats to show events from statistics tab.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308186#M92468</link>
      <description>&lt;P&gt;Hey..the page gets stuck loading. It doesn't seems be working.i can only see the title and its frozen at loading .&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 20:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-geostats-to-show-events-from-statistics-tab/m-p/308186#M92468</guid>
      <dc:creator>prithvi08</dc:creator>
      <dc:date>2018-01-17T20:52:30Z</dc:date>
    </item>
  </channel>
</rss>

