Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I enable EUM Client debug logging dynamically in the Controller?

To enable EUM Client side debug logs dynamically, you can use the Glassfish admin console or use the asamin utility.

 

1. Access the Glassfish admin console following the steps outlined here: AccesstheGlassfishAdminConsole

 

2. Once logged in, navigate to the server config in the console. Select Logger Settings, then Log Levels and add the logger below as shown in the screenshot and save it. Please note that these logging will be very verbose, hence it's normally enabled for few minutes during troubleshooting to capture the debug information in order to find out the root cause of the issue. 

  

com.appdynamics.eum.client.EUMClient=FINEST 
com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean=FINEST

  

Screen Shot 2018-07-19 at 4.25.37 PM.pngEUM CLient logger

If you can't access the Glassfish console for some reason, you can log in to the Controller machine and navigate to the pathbelow and enable it via the asadmin utility.

 

For example; 

cd /AppDynamics/Controller/appserver/glassfish/bin

./asadmin set-log-levels 
Enter admin user name>  admin
Enter admin password for user "admin"> 
Enter the value for the name_value operand> com.appdynamics.eum.client.EUMClient=FINEST: com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean=FINEST
com.appdynamics.eum.client.EUMClient package set with log level FINEST.
 com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean package set with log level FINEST.
These logging levels are set for server.
Command set-log-levels executed successfully.

 

To disable it after you have captured the required debug info:

 

./asadmin set-log-levels
Enter admin user name>  admin
Enter admin password for user "admin"> 
Enter the value for the name_value operand> com.appdynamics.eum.client.EUMClient=INFO: com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean=INFO
com.appdynamics.eum.client.EUMClient package set with log level INFO.
 com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean package set with log level INFO.
These logging levels are set for server.
Command set-log-levels executed successfully.

 

The command above sets multiple loggers and notice the colon(:) above to set multiple loggers. If you would like to set any one of them, you can use the command below.

 

./asadmin set-log-levels 
Enter admin user name>  admin
Enter admin password for user "admin"> 
Enter the value for the name_value operand> com.appdynamics.eum.client.EUMClient=FINEST
com.appdynamics.eum.client.EUMClient package set with log level FINEST.
These logging levels are set for server.
Command set-log-levels executed successfully.

or

./asadmin set-log-levels 
Enter admin user name>  admin
Enter admin password for user "admin"> 
Enter the value for the name_value operand> com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean=FINEST
com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean package set with log level FINEST.
These logging levels are set for server.
Command set-log-levels executed successfully.

 

Once the loggers are enabled, the sample FINEST message will look like this:

 

[#|2018-07-19T16:13:59.963+0530|FINER|glassfish3.1.2|com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean|_ThreadID=179;_ThreadName=Thread-5;ClassName=com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean;MethodName=uploadAppConfiguration;|Skipped. No reason to update configuration at this time for appId=25|#]

[#|2018-07-19T16:14:00.154+0530|FINE|glassfish3.1.2|com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean|_ThreadID=165;_ThreadName=Thread-5;ClassName=com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean;MethodName=registration;|EUM registration done|#]


[#|2018-07-19T16:04:57.068+0530|FINEST|glassfish3.1.2|com.appdynamics.eum.client.EUMClient|_ThreadID=1406;_ThreadName=Thread-5;ClassName=com.appdynamics.eum.client.EUMClient;MethodName=fetchEvents;|fetchEvents invoked|#]

[#|2018-07-19T16:04:57.068+0530|FINEST|glassfish3.1.2|com.appdynamics.eum.client.EUMClient|_ThreadID=1405;_ThreadName=Thread-5;ClassName=com.appdynamics.eum.client.EUMClient;MethodName=fetchEvents;|fetchEvents invoked|#]

 

Examples: 

 

Screen Shot 2018-07-19 at 4.31.35 PM.pngasadminScreen Shot 2018-07-19 at 4.31.21 PM.pngasadminScreen Shot 2018-07-19 at 4.31.07 PM.pngmultiple logger

 

Version history
Revision #:
6 of 6
Last update:
‎02-21-2019 11:54 PM
Updated by:
 
Labels (1)


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
0 Kudos