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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...