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
Revered Legend

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
Revered Legend

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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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