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
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...