<?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: Is there a way to add a &amp;quot;country&amp;quot; field to logs based on their ip address in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135749#M37136</link>
    <description>&lt;P&gt;Yeah, use the Splunk 6 &lt;CODE&gt;iplocation&lt;/CODE&gt; command: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/iplocation"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/iplocation&lt;/A&gt;&lt;BR /&gt;
That adds a &lt;CODE&gt;Country&lt;/CODE&gt; field amongst other things.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2014 16:42:37 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-07-09T16:42:37Z</dc:date>
    <item>
      <title>Is there a way to add a "country" field to logs based on their ip address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135747#M37134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Obviously ip addresses can be pushed onto a world map. However, I'd like to create reports Split by country specifically. This field is lacking in the logs but is it possible to add the field to the logs based on ip?&lt;/P&gt;

&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 16:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135747#M37134</guid>
      <dc:creator>anthonycopus</dc:creator>
      <dc:date>2014-07-09T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to add a "country" field to logs based on their ip address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135748#M37135</link>
      <description>&lt;P&gt;As of Splunk 6, you can use the iplocation command:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/Iplocation"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/Iplocation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This will provide the extra fields that you can use to get the stats you want. for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=firewall | iplocation src_ip | stats count by City Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jul 2014 16:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135748#M37135</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2014-07-09T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to add a "country" field to logs based on their ip address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135749#M37136</link>
      <description>&lt;P&gt;Yeah, use the Splunk 6 &lt;CODE&gt;iplocation&lt;/CODE&gt; command: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/iplocation"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/iplocation&lt;/A&gt;&lt;BR /&gt;
That adds a &lt;CODE&gt;Country&lt;/CODE&gt; field amongst other things.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 16:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-add-a-quot-country-quot-field-to-logs-based-on/m-p/135749#M37136</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-09T16:42:37Z</dc:date>
    </item>
  </channel>
</rss>

