Splunk Enterprise

Compare the field values

kirrusk
Communicator

Hi,

I'm trying to find ,if any one of the fields having specific value (here values is No) then create a field with that value.

for example, 

Field1   Field2    Result field

Yes          No               No

No           Yes              No

No           No               No

Yes         Yes               N/A

 

Please suggest how can I achieve this.

Labels (1)
0 Karma

thambisetty
SplunkTrust
SplunkTrust
| eval Result=if(Field1="No" OR Field2="No","No","NA")
————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...