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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...