All Apps and Add-ons

lookup multiple inputs

chvnc
Explorer

Hi,

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

sundareshr
Legend

Try this

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

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...