Datto RMM: Adding extended logging

Follow

Topic

This article describes how to add extended logging to Datto RMM.

Environment

  • Datto RMM

Description

To enable extended logging, perform the following steps. Remember to remove the extended logging from the devices after gathering the trace logs.

To enable extended logging for %ProgramFiles(x86)% → CentraStage → log.txt

1. On your device, navigate to the nlog.config file:

 Operating System

Path:

 Windows 32 bit

 %ProgramFiles% → CentraStage → nlog.config

 Windows 64 bit  %ProgramFiles(x86)% → CentraStage → nlog.config
You may need to change the write permissions for the nlog.config file to edit the file and save the changes.

2. Make a copy of the nlog.config file before making any changes to it. 

3. Right-click on nlog.config and edit the file:

FROM:

logger name="*" minlevel="Info" writeTo="file" />

TO:

logger name="*" minlevel="Trace" writeTo="file" />

4. Save and exit the file.

5. Restart the Datto RMM Agent.

Now when you view the Log.txt file, the extra lines containing DEBUG information will appear.

To enable extended logging for %programdata% → CentraStage → AEMAgent → DataLog → aemagent.log

Extended logging for the aemagent.log is in this location on the device: %ProgramData% → CentraStage → AEMAgent → .net → AEMAgent → 3hhxpwmy.mpb → nlog.config

nlog.pngFigure 1: nlog.config file (click to enlarge)

You may need to change the write permissions for the nlog.config file to allow you to edit the file and save the changes.

1. Make a copy of the nlog.config file before making any changes to it. 
2. Right-click on nlog.config and edit the file:

FROM:

<rules>
<logger name="log" minlevel="info" writeTo="log,console">
</logger>
<logger name="alert" minlevel="info" writeTo="alert">
</logger>
<logger name="error" minlevel="info" writeTo="error">
</logger>
<logger name="poll" minlevel="info" writeTo="poll">
</logger>
</rules>

TO:

<rules>
<logger name="log" minlevel="trace" writeTo="log,console">
</logger>
<logger name="alert" minlevel="trace" writeTo="alert">
</logger>
<logger name="error" minlevel="trace" writeTo="error">
</logger>
<logger name="poll" minlevel="trace" writeTo="poll">
</logger>
</rules>

3. Save and exit the file.

Now when you view the Log.txt file, the extra lines containing DEBUG information will appear.

To enable the extended logging for Mac

Enabling extended logging on a MAC is similar to Windows.

  • Go to Applications → AEM Agent.app → Contents → Resources → nlog.config and enable trace on the file.

Was this article helpful?

0 out of 0 found this helpful

You must sign in before voting on this article.

Want to talk about it? Have a feature request?

Head on over to our Datto Community Forum or the Datto Community Online.

For more Business Management resources, see the Datto RMM Online Help and the Autotask PSA Online Help .

Still have questions? Get live help.

Datto Homepage