Splunk Search

How would I write the following if statements in Splunk?

troy44112
Explorer

How would I write the following statements in Splunk?
Variables are start_access and last_access

Statement
If 20 days have passed from the start_access AND there was no last_access since the last start_access, then the result is not active.

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| stats latest(_time) as _time latest(access) as access
| where access="start_access" AND now()-_time > (20*24*60*60)
| eval result="not active"
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...