All Apps and Add-ons

Eval Lookup

Ning
Engager

Hi All,

Is it possible to perform Eval then perform lookup ?

If the eval return null then perform lookupA.csv. If eval return notnull, then perform lookupB.csv

 

thanks! 

Labels (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Ning 

You can try something like.

| lookup lookupA myField output opA
| lookup lookupB myField output opB
| eval opField= if(isnull(opA),opB,opA)

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Ning 

You can try something like.

| lookup lookupA myField output opA
| lookup lookupB myField output opB
| eval opField= if(isnull(opA),opB,opA)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...