Splunk Search

iplocation is not working

New Member

iplocation is not working for some IP addresses ( for example)
But this IP location is in the GeoLite2 City database (checked by opening it with python)
Could you tell me how to make the iplocation command working properly please?
Thanks in advance and have a great day!
Best regards

Tags (1)
0 Karma

New Member

Hello efavreau,

Thank you for your response. I tried again and it is working now. I already have restarted Splunk yesterday and it did not change anything. But maybe waiting one night has updated the configuration, I don't know.

Have a nice day!
Best regards

0 Karma


That address isn't in my database (I'm not updating it), but this code works for me using IP addresses that are in my database:

| makeresults 
| eval ip_address="" 
| iplocation ip_address

If this reply helps you, an upvote would be appreciated.
0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!