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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...