Splunk Search

Splunk v6: GeoIP usage without pivot

Simon
Contributor

Hi all

In Splunk v6, when using datamodels, I can add GeoIP information to ipv4 attributes.
Is it somehow possible, to use this GeoIP informations in a common search for later adding to a native map panel in a dashboard?

Thanks,
Simon

Tags (3)
0 Karma
1 Solution

ziegfried
Influencer

You can use the iplocation search command to manually add location information based on IPv4 address in a search:

sourcetype=access_combined | iplocation clientip

In order to drive maps in dashboards with that information it's recommended to use the geostats command, which precomputes aggregated information for multiple zoom levels:

sourcetype=access_combined | iplocation clientip | geostats count

or

sourcetype=access_combined | iplocation clientip | geostats count by method

View solution in original post

ziegfried
Influencer

You can use the iplocation search command to manually add location information based on IPv4 address in a search:

sourcetype=access_combined | iplocation clientip

In order to drive maps in dashboards with that information it's recommended to use the geostats command, which precomputes aggregated information for multiple zoom levels:

sourcetype=access_combined | iplocation clientip | geostats count

or

sourcetype=access_combined | iplocation clientip | geostats count by method

Simon
Contributor

ChrisG: Thanks for pointing this out, but I was more asking for another IPv4 to location translation data base.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

I think you can point to any tile server using the mapping.tileLayer.url attribute of the element in simple XML; see http://docs.splunk.com/Documentation/Splunk/6.0/Viz/PanelreferenceforSimplifiedXML#map

0 Karma

Simon
Contributor

Hey zigi, thanks. Fast and precise as always 🙂
Whichgeoip ddatabase is shipped with Splunk by default? Is there a way to replace it, eg. with a commercial version of maxmind?

0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...