#siem #logs #syslog #dns #security #logging

u-siem-elasticsearch

uSIEM Elasticsearch Input/Output logging

5 releases

0.0.10 Mar 26, 2022
0.0.9 Dec 15, 2021
0.0.8 Dec 15, 2021
0.0.7 Dec 15, 2021
0.0.6 Mar 23, 2021

#14 in #siem

MIT license

33KB
690 lines

usiem-elasticsearch

Input and Ouput logging components for uSIEM

ElasticSearch Output

First of all, this is a simple component that needs a lot of improvement.

// The configuration must be inside the code to reduce human errors in configuration files
let config = ElasticOuputConfig {
    commit_max_messages : 10, // Max number of elements in a request to elasticsearch
    commit_timeout : 1,// Timeot for the connection
    commit_time : 1,// Max milliseconds between requests to elasticsearch
    cache_size : 20, //Cache to store log retries
    elastic_address : String::from("http://127.0.0.1:9200"),
    elastic_stream : String::from("log-integration-test"),
    bearer_token : None //Some(String::new("API_TOKEN"))
};
let mut es_output = 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.add_output(es_output);
// The kernel is a work in progress so it's not available

Dependencies

~14–28MB
~419K SLoC