Splunk Search

inputlook up query

msachdeva3
Explorer

I have an xls input lookup, I'm trying to find members in inputlook in my source type.

Thanks

eg file - with attributes -pkID

source type has pkID and attributes,

I want attributes for those pkID in lookup file.

What would be the query ?

index= sourcetype = attr1 attr2 |lookup from PkID in lookupfile? ??/ How do I make this query ????

Tags (1)
0 Karma

sundareshr
Legend

Try this

index=foo sourcetype=bar [| inputlookup lookupfilename.csv | fields PkID] | rest of your search

This should return only events from your index=foo where PkID is in lookupfilename.csv

0 Karma
Get Updates on the Splunk Community!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...