Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Can you help me with a search involving multiple AND conditions in eval w/ if statement?

$
0
0
Hello there from someone in healthcare it industry. I'm working with multiple conditions, and I want to make sure my syntax is correct here. | eval goodClaimStat = if((catCode != "E0") and (catCode != "E1") and (catCode != "E2") and (catCode != "E3") and (catCode != "E4") and (catCode != "D0"), "true", "false") | eval goodEligOrAuth = if(tripleA != "42" and tripleA != "80", "true", "false") | eval successTransaction = if((transactionState == "Success" and goodClaimStat == "true" and goodEligOrAuth == "true"), 1, 0) catCode, tripleA and transactionState are all fields that I extracted from events using rex(). I verified in search that I'm extracting them correctly, so the next part of my query is this decision logic. I'm assuming that this is where my problem lies. transactionState has to be "Success" and then, catCode and tripleA cannot equal those values above, respectively.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>