Network Management
Regex to filter multiple strings
Regular expressions in Trap viewer. This article describes how to filter on a number of different strings in a trap message
First published date
Last published date
Overview
This article describes how to filter on a number of different strings in a trap message
Product section
Resolution
- Open the Trap Viewer (Start > All Programs > Solarwinds Orion > Syslog and SNMP Traps > Trap viewer).
- Click on the Trap Rule icon (yellow triangle) and select Add New Rule.
- Give the rule an appropriate name in the General tab.
- In the DNS Hostname tab, add any filtering to limit based on the DNS name or IP address.
- In Trap Details tab, select 'Use regular Expressions' and then enter the multiple strings separate with the 'pipe symbol' :- xyz|def|abc|pqr
- This will give the logic of xyz or def or abc or pqr