Set-LMLogPartitionAction
Syntax
Id
Set-LMLogPartitionAction [-Id <Int32>] -Action <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
Set-LMLogPartitionAction [-Name <String>] -Action <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMLogPartitionAction function modifies an existing log partition action in LogicMonitor.
Examples
Example 1
Set-LMLogPartitionAction -Id 123 -Action "pause"Updates the log partition with ID 123 to pause log ingestion.
Parameters
-Id
Specifies the ID of the log partition action to modify.
Type: Int32Parameter Sets: IdAliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: True (ByPropertyName)Accept wildcard characters: False
-Name
Specifies the current name of the log partition to modify.
Type: StringParameter Sets: NameAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Action
Specifies the new action for the log partition. Possible values are “pause” or “resume”.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None.
Outputs
Returns a LogicMonitor.LogPartition object containing the updated log partition information.
Notes
This function requires a valid LogicMonitor API authentication.