- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to add a "country" field to logs based on their ip address
anthonycopus
Path Finder
07-09-2014
09:23 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
07-09-2014
09:42 AM
Yeah, use the Splunk 6 iplocation
command: http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/iplocation
That adds a Country
field amongst other things.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dshpritz

SplunkTrust
07-09-2014
09:42 AM
As of Splunk 6, you can use the iplocation command:
http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/Iplocation
This will provide the extra fields that you can use to get the stats you want. for example:
index=firewall | iplocation src_ip | stats count by City Country
