12 Nov 2024 01:17 PM
Hi Folks,
I need some help, is it possible to get OneAgent restart info using DQL?
Regards,
AK
Solved! Go to Solution.
12 Nov 2024 09:14 PM
Is it not possible?
Regards,
AK
13 Nov 2024 10:14 AM
Hi,
I do not think that is possible.
Do you need some automation? What is your use case?
Best regards
13 Nov 2024 11:13 AM
My use is just to see if OneAgent restart is done recently or not. Can oneagentwatchdog.log help?
Regards,
AK
13 Nov 2024 11:49 AM
Hi,
Ok, I had just understood you wanted to restart OneAgent launching a DQL query... Then, @MostafaHussein is already pointing you to DQL query to get that information.
Best regards
13 Nov 2024 11:20 AM - edited 13 Nov 2024 11:22 AM
Hi @AK,
yes you can, as you see in the following figures there's process restart events detected for process instance "dynatracesourcewmi.exe_MH". you can fetch it from dt.davis.events easily using the below DQL query
fetch dt.davis.events
| filter event.name == "Process restart" AND dt.entity.process_group_instance.name == "REPLACE_WITH_YOUR_PGI_NAME"
BR,
Mostafa Hussein.