PSM HTML5 Gateway - How to enable debug logging in Guacamole

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PAM Self-Hosted Articles
1 min read
L1 Bithead
No ratings
When troubleshooting Guacamole issues in the HTML5 Gateway, how do I enable debug logging for the guacd service?

Steps

To enable debug logging in the guacd service you will need to edit the logback.xml file.  The location of this file depends on how Tomcat and Guacamole was installed, but by default this is under "/opt/tomcat/webapps/guac/WEB-INF/classes/logback.xml".  In this file, make the following change:
  • Change:
    • <root level="info">
  • To:
    • <root level="debug">
Debug logs will appear in the default webapp log under "/var/opt/CARKpsmgw/logs/webapp/cyberark-psm-gateway-webapp.log".

==
To make guacd write debug logs its best to run it in foreground debug mode:
==
1. Stop the guacd service: service guacd stop
2. Run the following command to include the freerdp libraries in the libraries path:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/CARKpsmgw/lib64:/opt/CARKpsmgw/lib64/freerdp2
Note: for HTML5GW versions 11.6 and older, use freerdp instead of freerdp2
3. Start guacd in foreground mode: /opt/CARKpsmgw/bin/guacd –L debug –f
4. Reproduce the problem by starting a new PSM connection. The log output will be printed on the terminal.
5. To return to normal mode of operation:
 - End the guacd foreground process by pressing Ctrl+C
 - Start the service:service guacd start
 
Rate this article:
  • 11176 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎08-18-2022 08:35 PM
Updated by: