Splunk Search

How to check since how long the field is having null value?

493600
Explorer

I want to check for how long my field TPP_ID is empty. I want to check date and time. Is it possible using splunk query?

Tags (1)
0 Karma
1 Solution

manjunathmeti
Champion

Try this:

index=<index_name> NOT TPP_ID=* | stats earliest(_time) as et latest(_time) as lt | eval time_diff = lt - et

View solution in original post

manjunathmeti
Champion

Try this:

index=<index_name> NOT TPP_ID=* | stats earliest(_time) as et latest(_time) as lt | eval time_diff = lt - et
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...