es4forensics 0.5.1

Import several timelines into elasticsearch
Documentation
use serde::Serialize;

use crate::ecs::ecs_object::EcsObject;

use super::Syslog;

#[derive(Serialize, Default)]
pub struct Log {
    syslog: Option<Syslog>
}

impl Log {
    pub fn with_syslog(mut self, syslog: Syslog) -> Self {
        self.syslog = Some(syslog);
        self
    }
}

impl EcsObject for Log {
    fn object_key(&self) -> &'static str {
        "log"
    }
}