Splunk Search

How can I return a value from a kv store lookup if a value from my search is found within a certain range in the lookup?

digitalX
Explorer

Hi dear Splunkers

I have a lookup (KV Store) with the following columns:

CITY...................ValueFrom ValueTo
TOKYO..............18169856 18170879
COIMBATORE 18254592 18254847
PUNE ...............18297856 18298111
HYDERABAD....18346752 18347007

Now in my search, I get the Value 18170000. How can I now perform a lookup to get TOKYO?
Every kind of hint would be helpful.

Kind regards

0 Karma

sundareshr
Legend

Your best bet is to create an external script, and check if the value in the event is median of the two values in lookup.

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...