Citrix Virtual Apps and Desktops SDK

Export-LogReportCsv

Exports Configuration Logging data into a CSV file.

Syntax


Export-LogReportCsv [-OutputFile <String>] [-StartDateRange <DateTime>] [-EndDateRange <DateTime>] [-RawReport] [-BearerToken <String>] [-AdminClientIP <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [-AdminAddress <String>] [<CommonParameters>]

<!--NeedCopy-->

Detailed Description

This cmdlet exports the Configuration Logging data into a CSV data file. The hierarchical logging data is flattened into a single CSV ‘table’. The content of CSV file is not intended to be human-readable. It is meant to be input data for external reporting or manipulation tools (for example, a spread sheet application).

Parameters

Name Description Required? Pipeline Input Default Value
OutputFile Specifies the path to a file where the CSV data will be saved. false false  
StartDateRange Specifies the start time of the earliest operation to include. false false DateTime.Min
EndDateRange Specifies the end time of the latest operation to include. false false DateTime.UtcNow
RawReport Get a CSV raw string report without saving it to a file. false false  
BearerToken Specifies the bearer token assigned to the calling user. false false  
AdminClientIP Specifies the Client IP of the calling user false false  
TraceParent Specifies the trace parent assigned for internal diagnostic tracing use false false  
TraceState Specifies the trace state assigned for internal diagnostic tracing use false false  
VirtualSiteId Specifies the virtual site id the PowerShell snap-in will connect to. false false  
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Examples

Example 1


C:\PS> Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv"

<!--NeedCopy-->

Description

Export all logged operations to a csv file.

Example 2


C:\PS> Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv" -StartDateRange "2012-12-21 09:00"

<!--NeedCopy-->

Description

Export to a CSV file logged operations started on or after a specified datetime..

Example 3


C:\PS> Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv" -StartDateRange "2012-12-21 09:00" -EndDateRange "2012-12-311 18:00"

<!--NeedCopy-->

Description

Export to a CSV file logged operations started and completed between a date range.

Export-LogReportCsv