Skip to main content

build_splunk_body

Function build_splunk_body 

Source
fn build_splunk_body(entries: &[Value], time: f64, source: &str) -> Bytes
Expand description

Serializes a batch into the HEC request body: HEC accepts multiple JSON event objects concatenated with no separator. Factored out for unit testing.