cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The AppDynamics Community is Migrating this Friday, February 28th.


At 6pm PST, the AppDynamics Community will go into read-only mode and after migration is complete, you will be redirected to community.splunk.com.
Read more here


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-10-09 at 10.40.12 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>
    
    <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
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:
‎10-09-2024 08:42 AM
Updated by:
Ask the Experts Session: Hybrid Application Monitoring Deployment

Join us on Feb 26 to explore Splunk AppDynamics deployment strategies, SaaS models, agent rollout plans, and expert best practices.


Register Now

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


Read the blog here