Splunk Search

Error using lookup table

ahogbin
Communicator

Hello

I am running the following search with the end aim of using the 'map' functionality to plot the results but when I run the query an error is returned advising

Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table.

The search I am running is

sourcetype="netscaler" | iplocation IPADDRESS | eval GeoLocation=case(Country="Australia", "Views from Australia", Country!="Australia", "International Views") | search GeoLocation="Views from Australia" NOT City="" OR Country="" | eval City=Upper(City) | lookup geoLocations_lookup City OUTPUT lat lon

I have verified that the lookup table is correct and it can be viewed using the | inputlookup call.

If I remove the lookup and run the query all works and the 'City' information is returned. I can then run further searches using City=XXXXX so it must be picking up the City name/value correctly so I am puzzled as to why the search fails using the lookup command.

Any help would be greatly appreciated.

Ps.. I know there is a Google Maps App but that is also giving us grief running in a distributed environment so I am hoping to use the above as an alternative.

Cheers,

Alastair

Tags (1)
0 Karma

ahogbin
Communicator

Fixed... a silly mistake on my behalf in that I had the reference column called by the incorrect name.

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