Dynatrace API
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Event API is not writing an event

Ganeshmete77
Participant

Hi Team,
I have created a Site Reliability Guardian (SRG) and also set up an event‑based trigger for a workflow.
I am sending a CUSTOM_INFO event using the Dynatrace Events Ingest API. The API call responds with Status OK.
However, when I try to fetch the same event in Notebooks using DQL, it Zero results.
Could you please help me understand why the event is not appearing in DQL even though the API returns OK?
Additionally, I would appreciate suggestions for the best way to trigger an SRG without using a CI/CD pipeline.
Is there a recommended practice (API, workflow, synthetic, automation rule, etc.)?
Thanks in advance for your help!

Below are details for reference.



curl -X POST "https://<DYNATRACE_URL_PROD>.dynatrace.com/api/v2/events/ingest" \
> -H "accept: application/json; charset=utf-8" \
> -H "Authorization: Api-Token <<API_TOKEN>" \
> -H "Content-Type: application/json; charset=utf-8" \
> -d '{
> "eventType": "CUSTOM_INFO",
> "title": "validation.triggered",
> "entitySelector": "type(\"SERVICE\"), entityName.equals(\"member-service-*-*-*-*\")",
> "properties": {
> "event.type": "validation.triggered",
> "event.kind": "SDLC_EVENT",
> "Squad": "IAM",
> "stage": "prod",
> "version": "1.2.1",
> "timeframe.from": "2026-02-10T10:00:00Z",
> "timeframe.to": "2026-02-12T12:00:00Z"
> }
> }'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 568 100 91 100 477 220 1154 --:--:-- --:--:-- --:--:-- 1378{"reportCount":1,"eventIngestResults":[{"correlationId":"5838a970541a7912","status":"OK"}]}

Ganeshmete77_0-1770992701335.png

Ganeshmete77_1-1770993065969.png

 

 

2 REPLIES 2

dannemca
DynaMight Guru
DynaMight Guru

Hi @Ganeshmete77 , good day.

The correlation ID you got from POST result is not the same value as dt.event.correlation_id. Also, the event.kind property is a default Dynatrace field, and you will not be able to adds custom values to it, same goes to the field event.type.

Try to filter by the event name (title).

fetch events
| filter event.name == "validation.triggered"

try and let us know.

Site Reliability Engineer @ Kyndryl

Ganeshmete77
Participant

Thanks @dannemca ,
I can see the event with above mentioned filter. 

Featured Posts