PowerShell Logo Small

Get-ClusterLog



This is the built-in help made by Microsoft for the command 'Get-ClusterLog', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a log file for all nodes, or a specific a node, in a failover cluster.

SYNTAX


Get-ClusterLog [[-Node] <StringCollection>] [-Cluster <String>] [-Destination <String>] [-InputObject <PSObject>] [-TimeSpan <UInt32>] [-UseLocalTime] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ClusterLog cmdlet creates a log file for all nodes, or a specific a node, in a failover cluster.


When creating a log file for the cluster, you can specify the timespan that you want logged information for in addition to providing a destination for the created logs.


Note: This cmdlet cannot be run remotely without Credential Security Service Provider (CredSSP) authentication on the server computer.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321030
Set-ClusterLog

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-ClusterLog
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 9/4/2008 3:53 PM 2211301 Cluster.log
-a--- 9/4/2008 3:53 PM 1261025 Cluster.log



This example creates a log file for the local cluster in the cluster reports folder on each node of the cluster.




EXAMPLE 2

PS C:\>Get-ClusterLog -Destination .
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 9/4/2008 3:55 PM 2211301 node1_cluster.log
-a--- 9/4/2008 3:55 PM 1261025 node2_cluster.log



This example creates a log file for each node of the local cluster, and copies all logs to the local folder.




EXAMPLE 3

PS C:\>Get-ClusterLog -TimeSpan 5
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 9/4/2008 3:58 PM 128299 Cluster.log
-a--- 9/4/2008 4:01 PM 104181 Cluster.log



This example creates a log file for the local cluster in the cluster reports folder on each node of the cluster. The log covers the last 5 minutes.