Get-DeliveryOptimizationLogAnalysis
Analyzes Delivery Optimization logs to summarize downloads and peering efficiency.
Syntax
Default (Default)
Get-DeliveryOptimizationLogAnalysis
[-ListConnections]
[[-Path] <String[]>]
[-Flush]
[<CommonParameters>]
Description
The Get-DeliveryOptimizationLogAnalysis cmdlet analyzes Delivery Optimization ETL files.
By default, it summarizes file counts, foreground downloads, files eligible for peering,
files that found or downloaded from peers, and overall and peer-assisted download efficiency.
Use ListConnections with Verbose to show connection details in the verbose stream, including peer address, peer type, status code, bytes sent and received, and file ID. The cmdlet still returns the summary object.
Use Path to analyze saved ETL files. If you omit Path, the cmdlet reads the Delivery Optimization service logs. Use Flush to flush buffered trace data before analysis.
Examples
Example 1: Analyze the local Delivery Optimization logs
Get-DeliveryOptimizationLogAnalysis
This command summarizes download and peering activity in the default service logs. Run it from an elevated PowerShell session.
Example 2: List connections from a saved trace
Get-DeliveryOptimizationLogAnalysis -Path 'C:\Logs\DeliveryOptimization.etl' `
-ListConnections -Verbose
This command shows connection details from the specified ETL file in the verbose stream and returns the download and peering summary object.
Parameters
-Flush
Flushes buffered Delivery Optimization trace data before analyzing the logs. Run with administrator permissions.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ListConnections
Writes connection details to the verbose stream. Use Verbose to show these details, which include destination IP address, peer type, status code, bytes sent and received, and file ID. The cmdlet still returns the default summary object.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Path
Specifies one or more ETL file paths to analyze. Pass paths directly to Path. If you omit this parameter, the cmdlet analyzes the Delivery Optimization service logs.
Although the parameter metadata declares pipeline input support by value and by the Path or PSPath property, the cmdlet selects and reads files before processing pipeline input. Piped paths don't select the files to analyze.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | PSPath |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
The parameter metadata declares pipeline input support, but piped paths don't select the files to analyze. Pass ETL file paths directly to Path instead.
Outputs
Microsoft.Windows.DeliveryOptimization.AdminCommands.LogSummary
Analysis results summarizing download and peering activity. When you specify ListConnections, connection details go to the verbose stream, not the success output stream.
Notes
Analysis can take several minutes. Reading the default service logs or using Flush requires an elevated PowerShell session.