This module holds regex abstraction classes for Syslog Collector and the ordered dictionary RegexDictList which contains all of regex instances configured in the system.
Abstraction classes inherit from BaseRegex
Base class for regular expression information storage and matching operation.
Provide method match to perform matching in order to update counter and last_matched timestamp.
Subclasses could be created to perform other actions when matching, or to match in other ways (multiline matching i.e.)
Public properties (read-only) are:
Property value: | matches counter value |
---|---|
Property last_matched: | |
timestamp of last successfull matching | |
Property name: | regex label |
Property regex: | python regular expression string. |
Property regex: | python compiled regex (see re). |
Property exit_if_matched: | |
flag set to stop matching other expressions if this one matches. |
Regular expressions holder.
It is an ordered dictionary.
It is the real global registry which holds status of each regular expression match in the running system