Set-VBRVSAEventForwardingFilteringRule

Short Description

Returns an updated copy of an advanced filtering rule for Veeam Software Appliance syslog event forwarding.

Product Edition: Veeam Universal License

Syntax

Set-VBRVSAEventForwardingFilteringRule [-Application <String>]

[-SeverityRules <VBRSyslogServerEventSeverity[]>] -FilteringRule <VBRVSAEventForwardingFilteringRule> [<CommonParameters>]

Detailed Description

This cmdlet returns a new VBRVSAEventForwardingFilteringRule object based on an existing rule, with the values you specify overriding the original application name and the array of forwarded severity levels.

Note

This cmdlet does not save changes to the configuration database. To apply the updated rule, pass the returned object to the Set-VBRVSAEventForwardingOptionsModifies Veeam Software Appliance syslog event forwarding settings. cmdlet with the AdvancedFilters parameter.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Application

Specifies the name of the application or daemon to which the rule applies.

String

False

Named

False

FilteringRule

Specifies the existing filtering rule that the cmdlet uses as the base for the updated copy.

Accepts the VBRVSAEventForwardingFilteringRule object. To create this object, run the New-VBRVSAEventForwardingFilteringRuleCreates an advanced filtering rule for Veeam Software Appliance syslog event forwarding. cmdlet, or retrieve one from the AdvancedFilters property of Get-VBRVSAEventForwardingOptionsReturns Veeam Software Appliance syslog event forwarding settings..

VBRVSAEventForwardingFilteringRule

True

Named

False

SeverityRules

Specifies an array of severity levels that the appliance will forward for the application. Accepted values:

  • Emergency
  • Alert
  • Critical
  • Error
  • Warning
  • Notice
  • Informational
  • Debug

VBRSyslogServerEventSeverity[]

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRVSAEventForwardingFilteringRule

Examples

Set-VBRVSAEventForwardingFilteringRuleExample 1. Modifying Severity Levels for Filtering Rule

This example shows how to build a copy of an existing filtering rule with new severity levels, and apply the updated rule to the appliance.

$options = Get-VBRVSAEventForwardingOptions

$rule = $options.AdvancedFilters[0]

$updatedRule = Set-VBRVSAEventForwardingFilteringRule -FilteringRule $rule -SeverityRules Emergency, Alert, Critical

Set-VBRVSAEventForwardingOptions -AdvancedFilters @($updatedRule)

Perform the following steps:

  1. Run the Get-VBRVSAEventForwardingOptionsReturns Veeam Software Appliance syslog event forwarding settings. cmdlet. Save the result to the $options variable.
  2. Get the first filtering rule from the AdvancedFilters property of the $options variable. Save the result to the $rule variable.
  3. Run the Set-VBRVSAEventForwardingFilteringRule cmdlet to build the updated rule. Save the result to the $updatedRule variable. Specify the following settings:
    • Set the $rule variable as the FilteringRule parameter value.
    • Set Emergency, Alert and Critical as the SeverityRules parameter value.
  4. Run the Set-VBRVSAEventForwardingOptionsModifies Veeam Software Appliance syslog event forwarding settings. cmdlet to persist the change. Pass the $updatedRule variable wrapped in an array as the AdvancedFilters parameter value.

Set-VBRVSAEventForwardingFilteringRuleExample 2. Renaming Application for Filtering Rule

This example shows how to build a copy of an existing filtering rule with a different application name, and apply the updated rule to the appliance.

$options = Get-VBRVSAEventForwardingOptions

$rule = $options.AdvancedFilters[0]

$updatedRule = Set-VBRVSAEventForwardingFilteringRule -FilteringRule $rule -Application "sshd"

Set-VBRVSAEventForwardingOptions -AdvancedFilters @($updatedRule)

Perform the following steps:

  1. Run the Get-VBRVSAEventForwardingOptionsReturns Veeam Software Appliance syslog event forwarding settings. cmdlet. Save the result to the $options variable.
  2. Get the first filtering rule from the AdvancedFilters property of the $options variable. Save the result to the $rule variable.
  3. Run the Set-VBRVSAEventForwardingFilteringRule cmdlet to build the updated rule. Set the $rule variable as the FilteringRule parameter value. Specify sshd as the Application parameter value. Save the result to the $updatedRule variable.
  4. Run the Set-VBRVSAEventForwardingOptionsModifies Veeam Software Appliance syslog event forwarding settings. cmdlet to persist the change. Pass the $updatedRule variable wrapped in an array as the AdvancedFilters parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18