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

Events api v2

gdp-d
Visitor

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"
    }
}
9 REPLIES 9

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Are you using Events API v2?

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes,I am using Events API v2

Hi,

Can you share which GET request are you using?

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

sivart_89
Mentor

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.

I am the admin of the tool.I am using it as a single user.

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")

PacoPorro
Dynatrace Leader
Dynatrace Leader

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"
    }
}

 

 
 

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

PacoPorro
Dynatrace Leader
Dynatrace Leader

type(application),entityName.equals("easyTravel Rental Cars")

Featured Posts