All Apps and Add-ons

lookup multiple inputs



one field has two values while use multiple input field within a lookup command and not getting the output.
The lookuptable looks like this:

env id file

eservices 123 abc123
xyz 456 abc456

I tried it like this, but it didn't work:

passing the env and id values in query and then
| lookup lookup.csv env,id OUTPUT file

if I pass only env=xyz its working but if two values are passed its not working.

0 Karma


Try this

.... | eval env_id=env." ".id | lookup "env id" AS env_id OUTPUT file
0 Karma
Get Updates on the Splunk Community!

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more with ITSI’s ...

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more! Faster Time to ValueManaging and ...

New Release | Splunk Enterprise 9.3

Admins and Analyst can benefit from:  Seamlessly route data to your local file system to save on storage ...

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...