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]
impl JSONEncodeFilter
pub fn new(config: JSONEncodeFilterConfig) -> JSONEncodeFilter
[src]
pub fn new(config: JSONEncodeFilterConfig) -> JSONEncodeFilter
Create a new JSONEncodeFilter
Trait Implementations
impl Filter for JSONEncodeFilter
[src]
impl Filter for JSONEncodeFilter
Auto Trait Implementations
impl Send for JSONEncodeFilter
impl Send for JSONEncodeFilter
impl Sync for JSONEncodeFilter
impl Sync for JSONEncodeFilter