Splunk Search

One field in a lookup file referring to other fields in another lookup file.

thirumalreddyb
Communicator

I have a weird situation.

1) I have a sourcetype "transactions" in which it has a field called "account_number".
2) There is a lookup file configured for this sourcetype which gives the "zipcode" of the respective account_numbers.
3) There is another lookup file in which i have "latitude" and "longitude" for the respective zipcodes.

My situation is I need to get latitudes and longitudes for respective "account_numbers" when i search something in sourcetype = "transactions". Please help.

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You should be able to use the output of one lookup as input to another lookup. Something like 'sourcetype=transactions | lookup foo.csv account_number OUTPUT zipcode | lookup bar.csv zipcode OUTPUT latitude longitude' should do it.

---
If this reply helps you, Karma 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 ...