morpheus.parsers.event_parser.EventParser
- class EventParser(columns, event_name)[source]
Bases:
abc.ABC
This is an abstract class for all event log parsers.
- Parameters
- columns: typing.Set[str]
- event_name: str
Event column names
Event name
- Attributes
columns
event_name
List of columns that are being processed.
Event name define type of logs that are being processed.
Methods
parse
(text)Abstract method 'parse' triggers the parsing functionality. parse_raw_event
(text, event_regex)Processes parsing of a specific type of raw event records received as a dataframe. - property columns
List of columns that are being processed.
- Returns
- typing.Set[str]
Event column names
- property event_name
Event name define type of logs that are being processed.
- Returns
- str
Event name
- abstract parse(text)[source]
Abstract method ‘parse’ triggers the parsing functionality. Subclasses are required to implement and execute any parsing pre-processing steps.
- parse_raw_event(text, event_regex)[source]
Processes parsing of a specific type of raw event records received as a dataframe.
- Parameters
- text
- event_regex: typing.Dict[str, any]
Raw event log text to be parsed.
Required regular expressions for a given event type.
- Returns
- cudf.DataFrame
Parsed logs dataframe