Splunk Search

Multiple Lookups from Sourcetype

paulf
Explorer

Hi,
Is it possible to perform a more than 1x lookup on a number of fields?

I have 2x IP fields, one is a source ip another a destination ip.

I have the following in my props.conf.

[radware]
LOOKUP-rdns = dnsLookup ip AS rad_attack_target_ip OUTPUTNEW host AS rad_attack_target_host
LOOKUP-rdns = dnsLookup ip AS rad_attack_source_ip OUTPUTNEW host AS rad_attack_source_host

The lookups are working, however only one of them. It is always the last one that works. For instance with the above configuration the hostnames will appear for rad_attack_source_host but not for the rad_attack_target_host.

If i swap the lookups around, the rad_attack_source_host will have no data, but the rad_attack_target_host will.

Thanks
Paul

Tags (1)
1 Solution

Ayn
Legend

First thing I spot is that you don't have unique identifiers for your LOOKUP definitions. Both the first and second one is called "LOOKUP-rdns". These identifiers need to be unique, because that's how Splunk keeps track of them. So, if you have two with the same name, the second one is most likely "overwriting" the first. So if you call them something like "LOOKUP-rdns1" and "LOOKUP-rdns2" you might solve your problem. (or at least we can go on to the next step of troubleshooting 😉 )

View solution in original post

Ayn
Legend

First thing I spot is that you don't have unique identifiers for your LOOKUP definitions. Both the first and second one is called "LOOKUP-rdns". These identifiers need to be unique, because that's how Splunk keeps track of them. So, if you have two with the same name, the second one is most likely "overwriting" the first. So if you call them something like "LOOKUP-rdns1" and "LOOKUP-rdns2" you might solve your problem. (or at least we can go on to the next step of troubleshooting 😉 )

paulf
Explorer

Hi,

Thanks! that has resolved my issue...

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