Getting Data In

Nested if

Madhusri
Engager

Hi,

In a field status contains two values one is failure and another is success.

Where in failure it contains some description values also an null value.

Also in success it contain description as null value.

As I am confused how to check null condition as it contains in both failure and success descriptions.

 

Regards,

Madhusri R

 

Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

isnull() and isnotnull() are the two functions you should look at e.g.

| eval status=if(isnotnull(description),"not empty","null")
| eval status=if(isnull(description),"null","not empty")
0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...