Splunk Search

Can you help me check multiple conditions in Splunk?

darshana2511
New Member

I have to check multiple conditions like if Auth = "PASS" and Basc = "PASS" and RReg = "PASS" then result ="PASS" else if anyone one of the condition as Fail then result = "Fail". How can I check this condition in splunk.

0 Karma

renjith_nair
Legend

@darshana2511,

Did you try this and what's missing from that?

eval result=if(Auth="PASS" AND Basc="PASS" AND RReg="PASS","PASS","Fail")
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...