Splunk Search

How to create query for multi value attribute?

spisiakmi
Communicator

Hi, can I ask you for helping me with this small problem, please?

If I read the content of the lookUp using any criteria I receive attribute Attr1. This Attr1 is multivalue attribute.

Attr1

7470486
7470487
7470597
7470543
 
I want to create query, where will be index=test ID=7470486 OR 7470487 OR 7470597 OR 7470543
 
 
Labels (2)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try something like this

index=test [| inputlookup yourlookup.csv | where...your criteria.. | table Attr1 | rename Attr1 as ID]

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try something like this

index=test [| inputlookup yourlookup.csv | where...your criteria.. | table Attr1 | rename Attr1 as ID]
0 Karma

spisiakmi
Communicator

Hi somesoni2,

this is amazing simple. Absolutely perfect. Thank you very much. Works fine.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...