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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...