# Custom Event ingestion from external script

**URL:** <https://community.dynatrace.com/t/custom-event-ingestion-from-external-script/52322>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, infrastructure-operations\
**Created:** [July 3, 2025, 3:17am UTC](https://community.dynatrace.com/t/custom-event-ingestion-from-external-script/52322 "2025-07-03T03:17:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lubrman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lubrman/32/7353_2.png) [@lubrman](https://community.dynatrace.com/u/lubrman)\
**Post date:** [July 3, 2025, 5:42am UTC](https://community.dynatrace.com/t/custom-event-ingestion-from-external-script/52322/2 "2025-07-03T05:42:06Z")

</div>

Hi [@JobyJob](https://community.dynatrace.com/user/92920)

Yes, there are several ways to directly create a custom alert using the APIs provided by Dynatrace when a script fails.

POST https://{environmentid}.live.dynatrace.com/api/v1/events

Alternatively, if your script sends logs, you can forward those logs to Dynatrace and then trigger an alert based on them.  
POST https://{environmentid}.live.dynatrace.com/api/v2/logs/ingest

---

_[View the full topic](https://community.dynatrace.com/t/custom-event-ingestion-from-external-script/52322)._
