<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article PSM HTML5 Gateway - How to enable debug logging in Guacamole in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/psm-html5-gateway-how-to-enable-debug-logging-in-guacamole/ta-p/1429559</link>
    <description>When troubleshooting Guacamole issues in the HTML5 Gateway, how do I enable debug logging for the guacd service?

&lt;H3&gt;Steps&lt;/H3&gt;
To enable debug logging in the guacd service you will need to edit the logback.xml file.&amp;nbsp; 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".&amp;nbsp; In this file, make the following change:
&lt;UL&gt;&lt;LI&gt;Change:
	&lt;UL&gt;&lt;LI&gt;&amp;lt;root level="info"&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;To:
	&lt;UL&gt;&lt;LI&gt;&amp;lt;root level="debug"&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
Debug logs will appear in the default webapp log under "/var/opt/CARKpsmgw/logs/webapp/cyberark-psm-gateway-webapp.log".&lt;BR /&gt;&lt;BR /&gt;==&lt;BR /&gt;To make guacd write debug logs its best to run it in foreground debug mode:&lt;BR /&gt;==&lt;BR /&gt;1. Stop the guacd service: service guacd stop&lt;BR /&gt;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&lt;BR /&gt;Note: for HTML5GW versions 11.6 and older, use freerdp instead of freerdp2&lt;BR /&gt;3. Start guacd in foreground mode: /opt/CARKpsmgw/bin/guacd –L debug –f&lt;BR /&gt;4. Reproduce the problem by starting a new PSM connection. The log output will be printed on the terminal.&lt;BR /&gt;5. To return to normal mode of operation:&lt;BR /&gt;&amp;nbsp;- End the guacd foreground process by pressing Ctrl+C&lt;BR /&gt;&amp;nbsp;- Start the service:service guacd start&lt;BR /&gt;&amp;nbsp;</description>
    <pubDate>Fri, 19 Aug 2022 03:35:22 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2022-08-19T03:35:22Z</dc:date>
    <item>
      <title>PSM HTML5 Gateway - How to enable debug logging in Guacamole</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/psm-html5-gateway-how-to-enable-debug-logging-in-guacamole/ta-p/1429559</link>
      <description>When troubleshooting Guacamole issues in the HTML5 Gateway, how do I enable debug logging for the guacd service?

&lt;H3&gt;Steps&lt;/H3&gt;
To enable debug logging in the guacd service you will need to edit the logback.xml file.&amp;nbsp; 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".&amp;nbsp; In this file, make the following change:
&lt;UL&gt;&lt;LI&gt;Change:
	&lt;UL&gt;&lt;LI&gt;&amp;lt;root level="info"&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;To:
	&lt;UL&gt;&lt;LI&gt;&amp;lt;root level="debug"&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;/UL&gt;
Debug logs will appear in the default webapp log under "/var/opt/CARKpsmgw/logs/webapp/cyberark-psm-gateway-webapp.log".&lt;BR /&gt;&lt;BR /&gt;==&lt;BR /&gt;To make guacd write debug logs its best to run it in foreground debug mode:&lt;BR /&gt;==&lt;BR /&gt;1. Stop the guacd service: service guacd stop&lt;BR /&gt;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&lt;BR /&gt;Note: for HTML5GW versions 11.6 and older, use freerdp instead of freerdp2&lt;BR /&gt;3. Start guacd in foreground mode: /opt/CARKpsmgw/bin/guacd –L debug –f&lt;BR /&gt;4. Reproduce the problem by starting a new PSM connection. The log output will be printed on the terminal.&lt;BR /&gt;5. To return to normal mode of operation:&lt;BR /&gt;&amp;nbsp;- End the guacd foreground process by pressing Ctrl+C&lt;BR /&gt;&amp;nbsp;- Start the service:service guacd start&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Fri, 19 Aug 2022 03:35:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/psm-html5-gateway-how-to-enable-debug-logging-in-guacamole/ta-p/1429559</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-08-19T03:35:22Z</dc:date>
    </item>
  </channel>
</rss>

