Splunk Search

Why is the iplocation command not showing city/region for all ip?

kapilbk1996
Explorer

I have an index "index_A" that contains IP address of client. But when I execute the following query, it does not show city/region for all IP.

index="filered_uiauditlogs" | iplocation ip |
table Country,City,Region

alt text

What changes are required in order to get city/region name for all IP's?

0 Karma
1 Solution

niketn
Legend

@kapilbk1996, iplocation command is based on MaxMindDB for finding location details based on IP addresses.
You can use the blog by Karandeep Bains to update the IP Location DB in Splunk or the post from @starcher that he has referred http://www.georgestarcher.com/splunk-updating-the-geoip-database/.

Even if you update the IP Location DB it might not have mapping for all the IPs.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@kapilbk1996, iplocation command is based on MaxMindDB for finding location details based on IP addresses.
You can use the blog by Karandeep Bains to update the IP Location DB in Splunk or the post from @starcher that he has referred http://www.georgestarcher.com/splunk-updating-the-geoip-database/.

Even if you update the IP Location DB it might not have mapping for all the IPs.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

starcher
Influencer

xpac
SplunkTrust
SplunkTrust

This should be an answer 😉

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...