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

11/9/2018 4:46 PM

Last published date

9/24/2019 2:48 AM

Overview

This article describes how to filter on a number of different strings in a trap message

Product section

Network Operations Manager

Resolution

  1. Open the Trap Viewer (Start > All Programs > Solarwinds Orion > Syslog and SNMP Traps > Trap viewer).
  2. Click on the Trap Rule icon (yellow triangle) and select Add New Rule.
  3. Give the rule an appropriate name in the General tab.
  4. In the DNS Hostname tab, add any filtering to limit based on the DNS name or IP address.
  5. In Trap Details tab, select 'Use regular Expressions' and then enter the multiple strings separate with the 'pipe symbol' :-  xyz|def|abc|pqr
  6. This will give the logic of xyz or def or abc or pqr