Splunk Search

How to only find matches where two tables have the same value?

Hergel
New Member

I have one table called CurrentValue and another called NextValue, I want to be able to only find results where CurrentValue and NextValue have the exact same value. How can I accomplish this?

Tags (2)
0 Karma
1 Solution

Suda
Communicator

Hello,

Could you try to use "where" command to compare 2 fields' value?

(your search) | where CurrentValue=NextValue 
  OR
(your search) | where 'CurrentValue'='NextValue' 

I hope it helps you.

Thank you.

View solution in original post

0 Karma

Hergel
New Member

Thanks, that worked 🙂

0 Karma

Suda
Communicator

Hello,

Could you try to use "where" command to compare 2 fields' value?

(your search) | where CurrentValue=NextValue 
  OR
(your search) | where 'CurrentValue'='NextValue' 

I hope it helps you.

Thank you.

0 Karma

Hergel
New Member

Thanks, that worked 🙂

0 Karma

strive
Influencer

CurrentValue and NextValue are tables right? the value should be same in any one column or multiple columns. Need more details to answer your question.

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...