Splunk Search

How to design query to compare values

cbiraris
Path Finder

Can you please help me to build eval query

Condition-1

ABC=Match
XYZ=Match

then output of ABC compare to XYZ is Match

Condition-2

ABC=Match
XYZ=NO_Match

then output of ABC compare to XYZ is No_Match

Condition-3

ABC=NO_Match
XYZ=Match

then output of ABC compare to XYZ is No_Match

Condition-4

ABC=NO_Match
XYZ=NO_Match

then output of ABC compare to XYZ is No_Match


Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval output=if(ABC="NO_Match" OR XYZ="NO_Match", "NO_Match", "Match")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval output=if(ABC="NO_Match" OR XYZ="NO_Match", "NO_Match", "Match")
0 Karma

cbiraris
Path Finder

Thank you, its working

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...