NVIDIA Morpheus (24.06)
(Latest Version)

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 column names

event_name: str

Event name

Attributes
columns

List of columns that are being processed.

event_name

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

Raw event log text to be parsed.

event_regex: typing.Dict[str, any]

Required regular expressions for a given event type.

Returns
cudf.DataFrame

Parsed logs dataframe

Previous morpheus.parsers.event_parser
Next morpheus.parsers.ip
© Copyright 2024, NVIDIA. Last updated on Jul 8, 2024.