Splunk Search

iplocation is not working

securiteinforma
Explorer

Hello,
iplocation is not working for some IP addresses (152.89.162.133 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

securiteinforma
Explorer

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

efavreau
Motivator

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="152.89.162.133" 
| iplocation ip_address
###

If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...