cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Abhi.Bajaj
AppDynamics Team

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.Screenshot 2024-06-18 at 10.18.51 AM.png
  • 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>
  • 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
Comments
RAKESH.MAHAJAN
New Poster

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

 

Abhi.Bajaj
AppDynamics Team

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"

RAKESH.MAHAJAN
New Poster

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

 

 

Abhi.Bajaj
AppDynamics Team

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

Version history
Last update:
‎06-25-2024 09:15 AM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here