Alerting

Is there anyway to find the created timestamp of an alert ?

dilsheer
New Member

is ther any way to find the created timestamp of an alert ?

Tags (1)
0 Karma

niketn
Legend

@dilsheer, provided you have access you can try the following REST API call for getting the details for Triggered Alerts, including Triggered Time:

| rest /servicesNS/<ownerRole>/<yourSplunkAppName>/alerts/fired_alerts/<yourAlertNameURLEncoded>
| dedup "eai:acl.owner" "eai:acl.app" savedsearch_name
| search "eai:acl.owner"="<ownerRole>" "eai:acl.app"="<yourSplunkAppName>" savedsearch_name="<yourAlertNameAsIs>"
| table savedsearch_name "eai:acl.owner" "eai:acl.app" trigger_time id

Please find the Splunk Documentation for corresponding REST API: http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#alerts.2Ffired_alerts.2F.7Bnam...

PS:

  • While providing the Alert {Name} in REST, make sure you have it URL Encoded i.e. space becomes %20.
  • Obviously this endpoint will work only for Alerts that are Enabled.
  • Replace, <ownerRole>, <yourSplunkAppName>, <yourAlertNameURLEncoded> and <yourAlertNameAsIs> with what you have in your system.
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

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 ...