Splunk Search

Setup an alerts with events from Timestamp format

devsru
Explorer

Dear All,

I want to setup an alert in an event. The event contains three timestamps, New Event time, Last update, and startDate time. So these are the logs coming from MS365. 

I want the Alert if one of the field "Incident Resolved = False" is satisfied even after 4 hours of startDate time. So we receive first event at startDate  but we don't want an alert until 4 hours of startDate .

 

startDateTime2024-07-01T09:00:00Z

 

devsru_0-1719840772562.png

 

 

 

Labels (4)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| where _time - strptime(startDateTime,"%FT%T%Z") > 4*60*60 and isResolved="False"
0 Karma

devsru
Explorer

Thanks for your answer but in my case _time may only appear once in 2 days when we have a new update and incident resolve state change to true. Can we do something that my  startDateTime checks with the latest time of the scheduled alert and raise an alarm if it is more than 4 hours ?

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| where time() - strptime(startDateTime,"%FT%T%Z") > 4*60*60 and isResolved="False"
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...