pub trait LogParser: DynClone + Send {
    fn parse_log(
        &self,
        log: SiemLog,
        datasets: &DatasetHolder
    ) -> Result<SiemLog, LogParsingError>; fn name(&self) -> &str; fn description(&self) -> &str; fn schema(&self) -> &'static FieldSchema; fn generator(&self) -> Box<dyn LogGenerator>; }
Expand description

A simple object with the logic to parse Logs.

Required Methods

Parse the log. If it fails it must give a reason why. This allow optimization of the parsing process.

Name of the parser

Description of the parser

Get parser schema

Get a log generator to test this parser

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementors