Activating DEBUG Logging for AppDynamics Machine Agent
Step-by-Step Guide to Enabling DEBUG Logs in Machine Agent
Debug logs for Machine Agents are important to help you understand issues and help you fix them.
- To enable, edit <MA-Home>/conf/logging/log4j.xml file.
- As shared in the screenshot, set the level = "debug"
<Logger name="com.singularity" level="debug" additivity="false"> <AppenderRef ref="FileAppender"/> </Logger> <Logger name="com.appdynamics" level="debug" additivity="false"> <AppenderRef ref="FileAppender"/> </Logger> <Logger name="com.singularity.ee.agent.systemagent.components.monitormanager.managed.ManagedMonitorDelegate" level="DEBUG" additivity="false"> <AppenderRef ref="FileAppender"/> </Logger>
- Once done, save the file
- The Machine Agent reads this file every few minutes so DEBUG logging will automatically take effect
- Once complete, logs can be found in the <MA-Home>/logs folder
- Mark as Read
- Mark as New
- Bookmark Message
- Permalink
- Report Inappropriate Content
Hello Abhi,
Very good information you have provided just please add information about do we need to keep Machine Agent is ON or OFF before or after enable debug logs.
Rakesh M
- Mark as Read
- Mark as New
- Bookmark Message
- Permalink
- Report Inappropriate Content
Hi Rakesh,
You can let MA run while changing the setting.
"The Machine Agent reads this file every few minutes so DEBUG logging will automatically take effect"
- Mark as Read
- Mark as New
- Bookmark Message
- Permalink
- Report Inappropriate Content
Thanks Abhi,
I got it now that we can enable debug logs online.
But if MA is down and not able to coming UP then during offline also Machine Agent reads this file?
Rakesh--
- Mark as Read
- Mark as New
- Bookmark Message
- Permalink
- Report Inappropriate Content
Hi Rakesh,
If MA Service is running then yes this file will be read. If MA service is down, it won't
When you start the service for the first time with DEBUG set, It will log the startUp in DEBUG