Input and Ouput logging components for uSIEM
First of all, this is a simple component that needs a lot of improvement. ```rust // The configuration must be inside the code to reduce human errors in configuration files let config = ElasticOuputConfig { commitmaxmessages : 10, // Max number of elements in a request to elasticsearch committimeout : 1,// Timeot for the connection committime : 1,// Max milliseconds between requests to elasticsearch cachesize : 20, //Cache to store log retries elasticaddress : String::from("http://127.0.0.1:9200"), elasticstream : String::from("log-integration-test"), bearertoken : None //Some(String::new("APITOKEN")) }; let mut esoutput = ElasticSearchOutput::new(config); // Configure component: register data schema... //...
// Register the component in the kernel, it will be responsible for autoscaling and starting copies of the component kernel.addoutput(esoutput); // The kernel is a work in progress so it's not available ```