Filter regular expression
First Claim
Patent Images
1. A method comprising:
- determining, by a system comprising a processor, a first regular expression based on a passing set of first strings corresponding to alarms that are to pass through a filter;
comparing, by the system, the first regular expression with a blocked set of second strings to determine that at least a second string of the second strings would be passed through the first regular expression, the blocked set of second strings corresponding to alarms that are to be blocked from passing through the filter;
based on the determining that the at least one second string would be passed through the first regular expression, dividing, by the system, the passing set into a first subset of the first strings and a second subset of the first strings based on similarity;
determining, by the system, a second regular expression based on the first subset, and a third regular expression based on the second subset;
in response to determining that none of the blocked set of second strings would pass through each of the second regular expression and the third regular expression,combining, by the system, the second regular expression and the third regular expression to determine a filter regular expression that represents the filter,filtering, by the system using the filter regular expression, an alarm received from a device; and
in response to the received alarm passing through the filter regular expression, performing, by the system, an action to address an issue corresponding to the received alarm.
4 Assignments
0 Petitions
Accused Products
Abstract
Example embodiments disclosed herein relate to determining a regular expression from a passing set of strings and a blocked set of strings. A regular expression is determined based on the passing set. The regular expression is compared to the blocked set. The passing set is divided into subsets based on the comparison. Regular expressions are determined for the subsets and are ORed together to determine a filter regular expression.
-
Citations
13 Claims
-
1. A method comprising:
-
determining, by a system comprising a processor, a first regular expression based on a passing set of first strings corresponding to alarms that are to pass through a filter; comparing, by the system, the first regular expression with a blocked set of second strings to determine that at least a second string of the second strings would be passed through the first regular expression, the blocked set of second strings corresponding to alarms that are to be blocked from passing through the filter; based on the determining that the at least one second string would be passed through the first regular expression, dividing, by the system, the passing set into a first subset of the first strings and a second subset of the first strings based on similarity; determining, by the system, a second regular expression based on the first subset, and a third regular expression based on the second subset; in response to determining that none of the blocked set of second strings would pass through each of the second regular expression and the third regular expression, combining, by the system, the second regular expression and the third regular expression to determine a filter regular expression that represents the filter, filtering, by the system using the filter regular expression, an alarm received from a device; and in response to the received alarm passing through the filter regular expression, performing, by the system, an action to address an issue corresponding to the received alarm. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory machine-readable storage medium storing instructions that, if executed by at least one processor of a device, cause the device to:
-
determine a regular expression based on a passing set of first strings corresponding to alarms that are to pass through a filter; divide the passing set into subsets of the first strings based on similarity in response to determining that a second string of a blocked set of second strings would be passed through the regular expression, the blocked set of second strings corresponding to alarms that are to be blocked from passing through the filter; perform a process comprising; determining respective subset regular expressions based on the subsets, for any given subset of the subsets for which a second string of the blocked set of second strings would be passed through the respective subset regular expression, dividing the given subset into further subsets, and re-iterating the performing of the process for the further subsets; ORing the subset regular expressions of the subsets that do not pass through any of the second strings to generate a filter regular expression representing the filter; filter, using the filter regular expression, an alarm received from a device; and in response to the received alarm passing through the filter regular expression, perform an action to address an issue corresponding to the received alarm in response to the received alarm matching a rule. - View Dependent Claims (10, 11)
-
-
12. A computing device comprising:
-
at least one processor; and a non-transitory machine-readable storage medium storing instructions executable on the at least one processor to; determine a first regular expression based on a passing set of first strings corresponding to alarms that are to pass through a filter; divide the passing set into first and second subsets of the first strings based on similarity in response to determining that a second string of a blocked set of second strings would be passed through the regular expression, the blocked set of second strings corresponding to alarms that are to be blocked from passing through the filter, determine a second regular expression based on the first subset, and a third regular expression based on the second subset; in response to determining that none of the blocked set of second strings would pass through each of the second regular expression and the third regular expression, OR the second and third regular expressions to generate a filter regular expression representing the filter, and filter, using the filter regular expression, an alarm received from a device; and in response to the received alarm passing through the filter regular expression, perform an action to address an issue corresponding to the received alarm. - View Dependent Claims (13)
-
Specification