Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-ClusterLog

Set-ClusterLog

microsoft.failoverclusters.powershell.dll

Synopsis

Sets the size and level of detail for the cluster log.

Syntax

Set-ClusterLog [-Cluster] [-InputObject] [-Level] [-Size] [<CommonParameters>]

Detailed Description

The Set-ClusterLog cmdlet sets the size and level of detail for the cluster log. The default level, 3, includes errors, warnings, and additional information.

Parameters

-Cluster <String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject>

Specifies the cluster from which to generate cluster logs.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Level <Int32>

Specifies the log level to set for the cluster. The acceptable values for this parameter are: 0 to 5.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Size <Int32>

Specifies the log size to set for the cluster. The acceptable values for this parameter are: 8 MB to 1024 MB.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster

Return Type

Microsoft.FailoverClusters.PowerShell.Cluster

Notes

None

Examples

Example 1

This example sets the cluster log to a detail level of 1.

PS C:\>Set-ClusterLog -Level 1
Name 
---- 
cluster1 

Example 2

This example sets the cluster log size to 1024 MB.

PS C:\>Set-ClusterLog -Size 1024
Name 
---- 
cluster1 

Online Version
Get-ClusterLog