Splunk Search

Why iplocation search returns fields, but no expected results related to iplocation?

xyzzylatest
Engager

I'm attempting to use iplocation with searches, but it is not returning any additional fields. I am trying to search like so: "220.135.91.199" | iplocation src_ip

It returns records, but none of the fields related to iplocation. The splunk host can access the internet, and I have confirmed it can access the hostip.info site.

Any help or hints/tips would be appreciated!

Tags (1)
0 Karma
1 Solution

Jeff_Lightly_Sp
Communicator

I can do this search:

index=firewall | iplocation src_ip and it returns values such as City & Country.

Be sure you are matching up the src_ip argument on iplocation with a valid field on your first search.

View solution in original post

Jeff_Lightly_Sp
Communicator

I can do this search:

index=firewall | iplocation src_ip and it returns values such as City & Country.

Be sure you are matching up the src_ip argument on iplocation with a valid field on your first search.

xyzzylatest
Engager

Installed latest update to splunk and iplocation started working. Thanks for helping Jeff!

0 Karma

Jeff_Lightly_Sp
Communicator

I do see some iplocation search references in SPLUNKD.LOG. Perhaps there are errors there? I do know that iplocation is now built in to Splunk (used to be a Python script) so that would make sense that it is there.

0 Karma

xyzzylatest
Engager

Thanks for the tip! I searched splunkd.log and wasn't able to location any iplocation references. the only references I found were in the splunkd_access.log and web_access.log files. They are not error messages, but have iplocation in the URL that was called (probably from me attempting to use iplocation in searchs).

0 Karma

xyzzylatest
Engager

I added src_ip, which is a valid field for the search I'm doing, but still no joy on City or Country fields. Is there a log I can check to see if there are errors that are not being presented in the UI?

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...