Table of ContentsLibraryView in Frames

Get-ClusterLog

This WSFC cmdlet enables you to retrieve information from the cluster log.

Syntax

Get-ClusterLog -Destination <DirectoryPath> [-Span <NumberOfMinutes>] [<CommonParameters>]

Description

This cmdlet retrieves data from the cluster log and saves it to text files in a directory that you specify using the -Destination parameter. The files are named by node: for example, node1_cluster.log and node2_cluster.log.

Parameters

-Destination DirectoryPath
Specifies the directory to which you want to save the collected log data.
-Span NumberOfMinutes
Specifies for how many minutes in the past you want to collect log data. If this parameter is not used, all existing log data is collected.

Example

The following example retrieves the most recent 60 minutes of log data and saves it to the directory C:\mylogs.

Get-ClusterLog -Destination C:\mylogs -Span 60