Set-LMLogPartition
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Set-LMLogPartition [-Id <int>] [-Description <string>] [-Retention <int>] [-Sku <string>] [-Status <string>] [-ContractIntervalHours <int>] [-AutoRestartOnRenewal <bool>] [-WhatIf] [-Confirm] [<CommonParameters>]IdUsageLimit
Section titled “IdUsageLimit”Set-LMLogPartition -Id <int> -UsageLimit <string> -StopIngestionOnLimit <bool> [-Description <string>] [-Retention <int>] [-Sku <string>] [-Status <string>] [-ContractIntervalHours <int>] [-AutoRestartOnRenewal <bool>] [-WhatIf] [-Confirm] [<CommonParameters>]NameUsageLimit
Section titled “NameUsageLimit”Set-LMLogPartition -Name <string> -UsageLimit <string> -StopIngestionOnLimit <bool> [-Description <string>] [-Retention <int>] [-Sku <string>] [-Status <string>] [-ContractIntervalHours <int>] [-AutoRestartOnRenewal <bool>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMLogPartition -Name <string> [-Description <string>] [-Retention <int>] [-Sku <string>] [-Status <string>] [-ContractIntervalHours <int>] [-AutoRestartOnRenewal <bool>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMLogPartition function modifies an existing log partition in LogicMonitor.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Set-LMLogPartition -Id 123 -Description "New description" -Retention 30 -Status "active"Updates the log partition with ID 123 with a new description, retention, and status.
EXAMPLE 2
Section titled “EXAMPLE 2”Set-LMLogPartition -Id 123 -UsageLimit "100GB" -StopIngestionOnLimit $true -AutoRestartOnRenewal $trueUpdates usage limit controls for the log partition with ID 123.
Parameters
Section titled “Parameters”-AutoRestartOnRenewal
Section titled “-AutoRestartOnRenewal”When true, ingestion automatically restarts on contract renewal.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ContractIntervalHours
Section titled “-ContractIntervalHours”The contract interval in hours. 0 = monthly (1st of next month), 24 = daily, 168 = weekly (next Monday), or a custom hour value.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies the new description for the log partition.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the ID of the log partition to modify.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: IdUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: false- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the current name of the log partition.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: NameUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Retention
Section titled “-Retention”Specifies the new retention for the log partition.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the new sku for the log partition.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Status
Section titled “-Status”Specifies the new status for the log partition. Possible values are “active” or “inactive”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StopIngestionOnLimit
Section titled “-StopIngestionOnLimit”When true, ingestion stops when the usage limit is exceeded. Use with the UsageLimit parameter set together with UsageLimit.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: NameUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: IdUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-UsageLimit
Section titled “-UsageLimit”The usage limit for the log partition contract, for example 100GB. Use with the UsageLimit parameter set together with StopIngestionOnLimit.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: NameUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: IdUsageLimit Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.