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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...