Enabling Logging for Citrix XenDesktop

Posted on June 06, 2009 in Documentation tagged with , , , ,

When troubleshooting problems, it’s essential you have as much information is possible. Logging is the best passive way to achieve this. Even in these modern times, we’re editing files in Notepad…

Virtual Desktop Agent Logging

1.     Create a new directory called c:\ctxlogging\. The Network and Local service accounts should have write access. If you are using standard vDisks, I recommend putting the log file on local storage so that it persists after log out.

2.     Navigate to c:\Program Files\Citrix\Virtual Desktop Agent\

3.     Open WorkstationAgent.exe.config with your Text Editor of Choice.

4.     Find the <appSettings> tag.

5.     Within the <appSettings> tag, insert the following two lines:

<add key="LogToCDF" value ="1"/>
<add key="LogFileName" value ="C:\ctxlogging\vda.log"/>

6.     Restart the Virtual Desktop to start logging.

Desktop Delivery Controller Logging

1.     Create a new directory called c:\ctxlogging\. The Network and Local service accounts should have write access.

2.     Navigate to c:\Program Files\Citrix\VMManagement\

3.     Open CdsPoolMgr.exe.config with your Text Editor of choice.

4.     Find the <appSettings> tag.

5.     Within the <appSettings> tag, insert the following two lines:

<add key="LogToCDF" value ="1"/>
<add key="LogFileName" value ="C:\ctxlogging\ddc_cdspoolmgr.log"/>

6.     Navigate to c:\Program Files\Citrix\Desktop Delivery Controller\

7.     Open cdscontroller.exe.config with your Text Editor of choice.

8.     Find the <appSettings> tag.

9.     Within the <appSettings> tag, insert the following two lines:

<add key="LogToCDF" value ="1"/>
<add key="LogFileName" value ="C:\ctxlogging\ddc_cdscntrl.log"/>

10.  You will need to reboot your DDC for this to take effect. If you have more than 1 DDC, perform these steps on all of them.

Some of the paths may vary depending on OS (x64) and whether you changed the default install paths during installation.

EDIT 8/23/09: Added CTX Article, http://support.citrix.com/article/CTX117452 and CTX Article for Enabling PortICA Logging http://support.citrix.com/article/CTX118837

The user Network Service will need Full Control over the log directory. While this is not officially documented by Citrix, it has been reported by others. (Thanks to Alistair Gillespie)