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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...