10 Apr 2024 04:06 PM
I have used dynatrace events api and got the follow response code
{
"reportCount": 1,
"eventIngestResults": [
{
"correlationId": "59c8a191229f84df",
"status": "OK"
}
]
}
But I am unable to see any updates in logs and events dashboard in dynatrace.Am I looking in the correct place or are the custom events are logged somewhere else.For reference this request body I have used.
{
"eventType": "CUSTOM_INFO",
"title": "Loadtest start",
"timeout": 30,
"properties": {
"Tool": "MyLoadTool",
"Load per minute": "100",
"Load pattern": "production"
}
}
11 Apr 2024 06:57 AM
Yes,I am using Events API v2
11 Apr 2024 07:21 AM
Hi,
Can you share which GET request are you using?
Best regards
11 Apr 2024 01:46 AM
Are you and admin of the tool? If not then you will need to be given access to the default_events bucket where these custom events are stored. We ran into this same type scenario where an app team could not pull the data via dql.
11 Apr 2024 06:57 AM
I am the admin of the tool.I am using it as a single user.
11 Apr 2024 04:06 PM
what dql are you running? there are several ways of getting the data via dql. you can run something like the below, just as example
fetch events
| filter matchesValue(affected_entity_ids, "serviceID")
fetch events
| filter matchesValue(event.name, "Loadtest start")
11 Apr 2024 07:35 AM
I recommend that you assign the custom information to an entity (service, host, process_group, etc).
{
"eventType": "CUSTOM_INFO",
"title": "Loadtest start",
"entitySelector": "type(service),entityName.equals(SERVICE-NAME)",
"timeout": 30,
"properties": {
"Tool": "MyLoadTool",
"Load per minute": "100",
"Load pattern": "production"
}
}
11 Apr 2024 11:16 AM
I am using agentless RUM for my application.I am confused on how to map it.Can you help me in writing the entity selector for the same
15 Apr 2024 01:08 PM
type(application),entityName.equals("easyTravel Rental Cars")