Export-LogReportCsv
Exports Configuration Logging data into a CSV file.
Syntax
Export-LogReportCsv
[-OutputFile <String>]
[-StartDateRange <DateTime>]
[-EndDateRange <DateTime>]
[-RawReport]
[<CitrixCommonParameters>]
[<CommonParameters>]
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).
Examples
EXAMPLE 1
Export all logged operations to a csv file.
Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv"
EXAMPLE 2
Export to a CSV file logged operations started on or after a specified datetime..
Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv" -StartDateRange "2012-12-21 09:00"
EXAMPLE 3
Export to a CSV file logged operations started and completed between a date range.
Export-LogReportCsv -OutputFile "c:\MyReports\LoggingData.csv" -StartDateRange "2012-12-21 09:00" -EndDateRange "2012-12-31 18:00"
Parameters
-OutputFile
Specifies the path to a file where the CSV data will be saved.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Required: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-StartDateRange
Specifies the start time of the earliest operation to include.
| Type: | DateTime |
| Position: | Named |
| Default value: | DateTime.Min |
| Required: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-EndDateRange
Specifies the end time of the latest operation to include.
| Type: | DateTime |
| Position: | Named |
| Default value: | DateTime.UtcNow |
| Required: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-RawReport
Get a CSV raw string report without saving it to a file.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Required: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
CitrixCommonParameters
This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
None
By default, this cmdlet returns no output.