cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Dominik.Zabłotny
AppDynamics Team

Why do I need to collect the debug-level log file?

The Java agent by default logs the entries at the info level. Sometimes, the debug-level log files are necessary to investigate an experienced issue. Debug-level logging logs are more insightful entries that can be later used to identify the root cause of the experienced issue. There are two ways you can collect the agent log files at the desired logging level.

  • From the AppDynamics controller UI.
  • From the server, where the agent was installed.

Collect the Java agent log files from the AppDynamics controller UI.

  • Log into the controller UI.
  • Select the problematic app.
  • Open the 'Tiers & Nodes' dashboard.

debug-logs-1.png

  • Select the problematic node.
  • Select the 'Agents' tab.

debug-logs-2.png

  • Scroll down to the 'Agent Operations' section and click on the 'Request Agent Log Files' button.

debug-logs-3.png

  •  Set the logging level properties.
    • Logger Name: com.singularity
    • Logger Level: Debug
    • Duration (minutes): at least 5
  • Click on the 'Request Agent Log Files' button to start the log files collection.
  • If it is a test environment, please make sure to generate the load on the app during the log file collection.

Collect the Java agent log files from the server, where the agent was installed.

  • (optional) Delete the '/<java-agent-home>/<version>/logs/<node-name>/' directory.
  • Edit the '/<java-agent-home>/<version>/conf/logging/log4j2.xml' file.
  • Change the logging level as in the example below.
<!-- to control the logging level of the agent log files, use the level attribute below. value="all|trace|debug|info|warn|error"-->
<AsyncLogger name="com.singularity" level="debug" additivity="false">
    <AppenderRef ref="Default"/>
    <AppenderRef ref="RESTAppender"/>
</AsyncLogger>
  • Apply the load on the app (if it is a test environment) for at least 5 minutes.
  • Zip the '/<java-agent-home>/<version>/logs/<node-name>/' directory.
  • Revert the change.

I hope this article was helpful. Feel free to ask in case of any questions.

Version history
Last update:
‎11-13-2024 11:12 AM
Updated by:
Join Us On December 10
Learn how Splunk and AppDynamics are redefining observability


Register Now!

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


Read the blog here