Failure Creating an Alarm Policy in OC 20.3 using long regex statement

book

Article ID: 208185

calendar_today

Updated On:

Products

DX Infrastructure Management

Issue/Introduction

When creating an alarm policy using a regex statement and attempting to save it.  We receive a "failure executing action - Request failed with Status code 500).

 

 

Cause

Regex is longer than 256 characters.

Environment

Release : 20.3

Component : UIM - OPERATOR CONSOLE

Resolution

This regex field is designed with a limit of 256 characters.  Anything over that will generate this error.  You can break the longer regex filter into smaller strings to use in other conditions of the same policy.

Additional Information

- Can we set up a single policy with multiple conditions on the same metric with the same priority by breaking down the long regex filters into strings less than 256 characters?
---> Yes it is possible and it is one of the alternatives for the issue

- Could we create multiple policies to do the same thing?
---> Yes you can create multiple policies to do the same thing

- Are there any other ways to create alarm policies to match a very long regex string?
---> No, As the existing library supports only 256 maximum characters.