Set-ClusterLog

Set-ClusterLog

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

Syntax

Parameter Set: InputObject
Set-ClusterLog [-Cluster <String> ] [-InputObject <PSObject> ] [-Level <Int32> ] [-Size <Int32> ] [ <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

none

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

none

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

none

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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.FailoverClusters.PowerShell.Cluster

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.FailoverClusters.PowerShell.Cluster

Examples

Example 1

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

PS C:\> Set-ClusterLog -Level 1

Example 2

This example sets the cluster log size to 1024 MB.

PS C:\> Set-ClusterLog -Size 1024

Get-ClusterLog