17
Configuration Logging XenDesktop 7.6 Marcel Venema v1.0, December 2015

Citrix XenDesktop Configuration Logging

Embed Size (px)

Citation preview

Page 1: Citrix XenDesktop Configuration Logging

Configuration LoggingXenDesktop 7.6

Marcel Venemav1.0, December 2015

Page 2: Citrix XenDesktop Configuration Logging

Configuration Logging

‒ Captures site configuration changes and administrative activities. Writes logged content to database.

‒ Enabled by default.

With configuration logging you can:‒ Diagnose and troubleshoot problems after

configuration changes are made; the log provides a breadcrumb trail.

‒ Assist change management and track configurations. ‒ Report administration activity.

Page 3: Citrix XenDesktop Configuration Logging

Configuration Logging

‒ Configuration Logging can be managed from Citrix Studio or Powershell

Page 4: Citrix XenDesktop Configuration Logging

Configuration Logging Architecture

Uses Citrix Configuration Logging Service

Page 5: Citrix XenDesktop Configuration Logging

Configuration Logging

NEW

EST

Show Interval:Last 6 months, Last 3 monthsLast 28 days, Last 7 daysToday

Search option:Filter logs

High level operations:A high level operation results in one or more service and SDK calls, which are low level operations

Low level operations are displayed when you select a high level operation in the upper portion of the center pane

The log content is displayed chronologically (newest entries first) by default

Page 6: Citrix XenDesktop Configuration Logging

What is logged

‒ Configuration changes and administrative activities initiated from Studio, Director, and PowerShell scripts.

Page 7: Citrix XenDesktop Configuration Logging

What is not logged

‒ Autonomic operations such as pool management power-on of virtual machines.

‒ Policy actions implemented through the Group Policy Management Console (GPMC); use Microsoft tools to view logs of those actions.

‒ Changes made through the registry, direct access of the Database, or from sources other than Studio, Director, or PowerShell.

‒ When the deployment is initialized, Configuration Logging becomes available when the first Configuration Logging Service instance registers with the Configuration Service. Therefore, the very early stages of configuration are not logged (for example, when the Database schema is obtained and applied, when a hypervisor is initialized).

Page 8: Citrix XenDesktop Configuration Logging

Reporting

‒ Via ‘Create Custom Report’‒ Can be CSV or HTML format

Page 9: Citrix XenDesktop Configuration Logging

Reporting

‒ Select date range‒ Select format and location

‒ Generating configuration log reports can be used as back up before deleting log entries.

Page 10: Citrix XenDesktop Configuration Logging

Delegation of control

Set Permissions on role:‒ No Access‒ Read Only‒ Manage

Delete Configuration LogsEdit Logging Preferences

To delete Configurations Logs also SQL Database permissions are neededServer role Database role

sysadmin (public)

serveradmin

(public)

setupadmin

(public)

(public) ConfigurationLoggingSchema_ROLE

(public) db_owner

Page 11: Citrix XenDesktop Configuration Logging

Preferences

‒ Enable/Disable logging‒ Select Logging database‒ Set Mandatory Logging

Page 12: Citrix XenDesktop Configuration Logging

Change database location

‒ Site database includes configuration logging database and monitoring database

‒ Highly recommended to change location of configuration logging and monitoring database

‒ Supported databases:– SQL Server 2014, Express, Standard, and Enterprise Editions.– SQL Server 2012 SP1, Express, Standard, and Enterprise Editions. By

default, SQL Server 2012 SP1 Express is installed when installing the Controller, if an existing supported SQL Server installation is not detected.

– SQL Server 2008 R2 SP2, Express, Standard, Enterprise, and Datacenter Editions.

Page 13: Citrix XenDesktop Configuration Logging

Change database location

When you change the location of the Configuration Logging or Monitoring database:

– The data in the previous database is not imported to the new database.

– Logs cannot be aggregated from both databases when retrieving logs.

– The first log entry in the new database indicates that a database change occurred, but it does not identify the previous database.

You cannot change the database location when mandatory logging is enabled.

Page 14: Citrix XenDesktop Configuration Logging

Change database location

Use Logging Preferences – Change logging database

- Specify server location and database nameUse DNS alias for database server

- If you want Studio to create database, click OK- Otherwise use ‘Generate Database Script’

Page 15: Citrix XenDesktop Configuration Logging

Powershell commands

LogConfigurationLoggingSnapin:Available commands:add-PSsnapin Citrix.ConfigurationLoggin.Admin.v1Get-Command –Module *configurationlogging*

‒ Set-LogSiteAllows settings to be setExample: Set-LogSite -State Enabled -Locale Dutch –AdminAddress “<controller>”

‒ Get-LogHighLevelOperationRetrieves existing High Level Operations based on filter criteria

‒ Get-LogLowLevelOperationRetrieves existing Low Level Operations based on filter criteria

‒ Start-LogHighLevelOperationLogs the start of a new High Level Operation in the Logging Database

‒ Stop-LogHighLevelOperationLogs the completion of a new High Level Operation in the Logging Database

Page 16: Citrix XenDesktop Configuration Logging

Powershell commands

‒ Remove-LogOperationDeletes records from the database within a specified time range

‒ Export-LogReportCSVGenerates a CSV report of the data in the database

‒ Export-LogReportHTMLGenerates an HTML report of the data in the database

Examples: $loggingId = Start-LogHighLevelOperation “Create Machine Catalog” New-BrokerCatalog –Name “Catalog1” ... -LoggingId $loggingId New-ProvScheme –Name “Catalog1” ... -LoggingId $loggingId ... Stop-LogHighLevelOperation –Id $loggingId

Page 17: Citrix XenDesktop Configuration Logging

Maintenance Tasks

Monthly tasks:‒ No automatic log deletion is performed and log

entries need to be manually deleted.