Set-ClusterLog

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

Syntax

Set-ClusterLog
   [-Cluster <String>]
   [-InputObject <PSObject>]
   [-Level <Int32>]
   [-Size <Int32>]

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.

Examples

Example 1

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

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

Example 2

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

This example sets the cluster log size to 1024 MB.

Parameters

-Cluster

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.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster from which to generate cluster logs.

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Level

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

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Size

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

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

Microsoft.FailoverClusters.PowerShell.Cluster