Purpose
LDMS 9.6 introduced additional logging options. These options help manage the size, quantity, and the logged information. Using these options can be beneficial in troubleshooting a variety of issues.
Steps
- Open Registry Editor (regedit.exe)
- Navigate to and select the LogOptions key
- 32Bit OS - [HKEY_LOCAL_MACHINE\SOFTWARE\landesk\managementsuite\LogOptions]
- 64Bit OS - [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\landesk\managementsuite\LogOptions]
- Right click desired REG_DWORD and choose Modify.
- Set Value data to desired value
- 0 = Off
- 1 = On
- Set Value data to desired value
REG_DWORD | Purpose |
---|---|
logInfo | Write “INFO” type messages to the log |
logType | Include the message type (INFO, WARN, XTRC etc) |
logVerbose | Write verbose entries |
logXTrace | Enable xtrace logging (contained in the log calling the process) |
maxBackups | How many rolling logs to keep (default: 7) |
maxSize | How big to let the log get (in bytes) |
showDateTime | Write date/time for each log entry |
showModule | Shows the dll (module) that wrote the log line |
showPID | Includes the process ID making the log entry |
showSource | Show filename and line number from source |
showTID | Show thread ID |
useTabs | Makes the log much easier to load into Excel for review or analysis |
Log Location
When the additional logging is turned on It will write additional information into the logs at the following locations depending on the type of task being executed.
C:\ldprovisioning
C:\Program Files (x86)\LANDesk\LDClient
C:\Program Files (x86)\LANDesk\LDClient\Data
C:\ProgramData\LANDesk\Log
NOTE: When using the additional logging in WinPE, these logs are written to X:\ProgramData\LANDesk\Log. The ProgramData folder is hidden but can still be accessed using the 'CD' (change directory) command.
Additional Options
Individual log options can be overridden by adding the above REG_DWORD to the specific sub-key. For example, if you want to have vulscan keep 12 backups of a log and always write verbose entries into the log you would:
- Open Registry Editor (regedit.exe)
- Navigate to the LogOptions\vulscan.exe key
- 32Bit OS - [HKEY_LOCAL_MACHINE\SOFTWARE\landesk\managementsuite\LogOptions\vulscan.exe]
- 64Bit OS - [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\landesk\managementsuite\LogOptions\vulscan.exe]
- Right click vulscan.exe
- Select New
- Select DWORD (32-bit) Value
- Type the Reg_DWORD logVerbose
- Right click logVerbose REG_DWORD and choose Modify.
- Set Value data to 1 (On)
- Repeat for maxBackups and set value to 12
These modifications can be made individually as needed for troubleshooting. However if this is needed on a wider scale, modifying multiple values in multiple registries can be problematic. Below you will find attached Provisioning Templates that will allow you to modify the registries using a scheduled task. By default these templates have the values set to their default value. A copy should be made of the default version so that changes can be reverted easily. These can be further modified to create the logging options for specific sub-keys.
Related Documents
How to enable XTrace Diagnostic logging in LANDesk 9.6 Core and Clients