Splunk Search

can i use the or condition in lookups ??

rakesh_498115
Motivator

Hi..

My Keyword , value
ABC A
ABC B
ABC C
XYZ D

These are the values that i have in lookup table..for the values "A","B",and "C" i have to replace with keyword "ABC" ..Now suppose value "A" has 10 occurences , "B" has 5 occurences and "C" has 2 occurences..

When i use the top command with the Mykeyword .it has to show the following stats for me..
say ..

ABC 17 (here 17 is the summation of 10 ,5 and 2 )
XYZ (some value)

how can i do this ??? Is it possible to give a OR condition in lookup table ??

Please help ..

Tags (1)
0 Karma

lguinn2
Legend

Why not do

... | top myKeyword by value

instead of

.... | top myKeyword

Also, it would be helpful if you showed your exact searches, and possibly a sample of some "real" data. This is a bit abstract and difficult to follow. So my answer is just a guess.

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