<?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 How to count distinct IPs from a given country in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-distinct-IPs-from-a-given-country/m-p/443133#M125750</link>
    <description>&lt;P&gt;I am trying to parse a syslog input to count the number of distinct IPs for a given country. My search string is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; iplocation src_ip | stats sparkline count by Country | sort - count | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to add a column after "count" that displays the number of unique source IP for a given country. Is this possible?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Aug 2019 17:57:18 GMT</pubDate>
    <dc:creator>mlines333</dc:creator>
    <dc:date>2019-08-11T17:57:18Z</dc:date>
    <item>
      <title>How to count distinct IPs from a given country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-distinct-IPs-from-a-given-country/m-p/443133#M125750</link>
      <description>&lt;P&gt;I am trying to parse a syslog input to count the number of distinct IPs for a given country. My search string is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; iplocation src_ip | stats sparkline count by Country | sort - count | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to add a column after "count" that displays the number of unique source IP for a given country. Is this possible?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 17:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-distinct-IPs-from-a-given-country/m-p/443133#M125750</guid>
      <dc:creator>mlines333</dc:creator>
      <dc:date>2019-08-11T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to count distinct IPs from a given country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-distinct-IPs-from-a-given-country/m-p/443134#M125751</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Maybe you can try this?&lt;/P&gt;

&lt;P&gt;iplocation src_ip | stats sparkline count, dc(src_ip) by Country | sort - count | head 10&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;BR /&gt;
Willem&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-distinct-IPs-from-a-given-country/m-p/443134#M125751</guid>
      <dc:creator>willemjongeneel</dc:creator>
      <dc:date>2020-09-30T01:41:08Z</dc:date>
    </item>
  </channel>
</rss>

