New-VBRVSAEventForwardingFilteringRule
Short Description
Creates an advanced filtering rule for Veeam Software Appliance syslog event forwarding.
Product Edition: Veeam Universal License
Syntax
|
New-VBRVSAEventForwardingFilteringRule -Application <String> -SeverityRules <VBRSyslogServerEventSeverity[]> [<CommonParameters>] |
Detailed Description
This cmdlet creates an advanced filtering rule for Veeam Software Appliance syslog event forwarding. The rule defines the severity levels that are forwarded for a specific application or daemon and overrides the default severity rules configured in the appliance forwarding options.
To apply the rules, save them to a variable and pass them as the AdvancedFilters parameter value of the Set-VBRVSAEventForwardingOptionsModifies Veeam Software Appliance syslog event forwarding settings. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Application |
Specifies the name of the application or daemon to which the rule applies. |
|
True |
Named |
False |
|
SeverityRules |
Specifies an array of severity levels that the appliance will forward for the application. Accepted values:
|
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRVSAEventForwardingFilteringRule
Examples
Creating Filtering Rule for Application
This example shows how to create an advanced filtering rule that forwards only Error and Critical events for the sshd daemon.
|
$rule = New-VBRVSAEventForwardingFilteringRule -Application "sshd" -SeverityRules Error, Critical |
Perform the following steps:
- Run the
New-VBRVSAEventForwardingFilteringRulecmdlet. Specify the following settings:- Specify
sshdas theApplicationparameter value. - Specify
ErrorandCriticalas theSeverityRulesparameter value.
- Specify
- Save the result to the
$rulevariable to use with other cmdlets.
Related Commands
Set-VBRVSAEventForwardingFilteringRuleReturns an updated copy of an advanced filtering rule for Veeam Software Appliance syslog event forwarding.Set-VBRVSAEventForwardingOptionsModifies Veeam Software Appliance syslog event forwarding settings.Export-VBRVSAEventForwardingFilteringRuleExports Veeam Software Appliance syslog event forwarding filtering rules to a file.Import-VBRVSAEventForwardingFilteringRuleImports Veeam Software Appliance syslog event forwarding filtering rules from a file.