Struct cernan::filter::json_encode_filter::JSONEncodeFilter[][src]

pub struct JSONEncodeFilter { /* fields omitted */ }

Convert LogLine events into Raw events encoded as JSON.

This filter takes LogLines and encodes them into JSON, emitting the encoded event as a Raw event. This allows further filters or sinks to operate on the JSON without needing to understand a LogLine event in particular. If the LogLine value is a valid JSON object and parse_line config option is true, then the JSON will be merged with LogLine metadata. Otherwise, the original line will be included simply as a string.

Methods

impl JSONEncodeFilter
[src]

Create a new JSONEncodeFilter

Trait Implementations

impl Filter for JSONEncodeFilter
[src]

Process a single metric::Event Read more

Run the Filter Read more

Auto Trait Implementations