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

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

henk_stobbe
DynaMight Leader
DynaMight Leader

Hi,

Using above with the from and to, returns an empty list. I assume using the EPOC time as parameter format is fine, but does this work without the extra eventType and or eventId parameters?

So is my assumption good that you can collect events from a past period?

KR Henk

11 REPLIES 11

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

You have to use timestamps for from and to. I will add that info in help docu, thanks for the hint. Yes the endpoint allows you to fetch events on a environment global level as well as on entity level by using the entityId= filter. eventType filter is also possible.

Of course you can fetch events from the past, thats the purpose of the endpoint.

i am getting this below error for the Problem API URL for my tenent :

https://aabbcc.live.dynatrace.com/api/v1/problem/feed

{"error":{"code":401,"message":"Unsupported authentication mechanism -> 'Basic', could not be used as fallback."}}


wolfgang_beer
Dynatrace Leader
Dynatrace Leader

Did you create and use a Dynatrace API token? You have to add the Api-Token either as HTTP GET parameter or as a HTTP Header field:

?Api-Token=<YOUR_TOKEN>

See the help docu here:

https://www.dynatrace.com/support/help/dynatrace-api/authentication/how-do-i-set-up-authentication-to-use-the-api/

henk_stobbe
DynaMight Leader
DynaMight Leader

Hi Wolfgang,

eventType or entityId, both work perfect, if you use from and to you get unexpected results?


Correct?

KR Henk

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

What do you mean with unexpected results? The expected result is to get all events that are within that selected timeframe.

henk_stobbe
DynaMight Leader
DynaMight Leader

Hi Wolfgang,

No sorry, that's what I expected but no. Using a short period in the past returns 0, and when using a long period he only show's a few "resent" events. Shall I create a ticket or do you have any extra advise for me?

KR Henk

henk_stobbe
DynaMight Leader
DynaMight Leader

Wolfgang, I tried it on a non customer environment. Above the screenshot of the result, only 9 events are returned while event count is 7168.

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

I will create a ticket for that. Thanks for reporting. Can you please also post a screenshot of the event types you see in the same timeframe within the WebUI? The reason is very likely an event type R&D forgot to export.

Thanks,

Wolfgang

henk_stobbe
DynaMight Leader
DynaMight Leader


2018 Mar 13 08:06:40 Process HPNA-Integration.jar has crashed

2018 Mar 13 06:05:10 Process HPNA-Integration.jar has crashed

2018 Mar 13 05:41:40 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 13 04:03:50 Process HPNA-Integration.jar has crashed

2018 Mar 13 02:03:00 Process HPNA-Integration.jar has crashed

2018 Mar 13 00:03:00 Process HPNA-Integration.jar has crashed

2018 Mar 12 23:40:40 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 12 22:01:50 Process HPNA-Integration.jar has crashed

2018 Mar 12 20:00:50 Process HPNA-Integration.jar has crashed

2018 Mar 12 18:00:20 Process HPNA-Integration.jar has crashed

2018 Mar 12 17:40:10 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 12 15:58:50 Process HPNA-Integration.jar has crashed

2018 Mar 12 13:57:20 Process HPNA-Integration.jar has crashed

2018 Mar 12 11:56:49 Process HPNA-Integration.jar has crashed

2018 Mar 12 11:39:20 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 12 09:56:50 Process HPNA-Integration.jar has crashed

2018 Mar 12 07:54:00 Process HPNA-Integration.jar has crashed

2018 Mar 12 05:52:40 Process HPNA-Integration.jar has crashed

2018 Mar 12 05:38:40 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 12 03:52:00 Process HPNA-Integration.jar has crashed

2018 Mar 12 01:51:10 Process HPNA-Integration.jar has crashed

2018 Mar 11 23:50:00 Process HPNA-Integration.jar has crashed

2018 Mar 11 23:38:00 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes.
updated

2018 Mar 4 11:22:20 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 4 05:21:30 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 3 23:20:40 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 3 17:20:20 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 3 11:19:30 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 3 05:18:40 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 2 23:18:20 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated
2018 Mar 2 17:18:10 Deployment change for process com.evolven.labsense.agent.shell.MainClass
C:\Program Files\Evolven Enlight\Agent\log\system with 4 changes. updated

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

I meant 'event types' within the individual host or process screens. See below:

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

I see that we do not expose the process restart event as we will deprecate that event type in the future. If you have lots of those event types the overall number is wrong. We will fix that.

Featured Posts