Skip to main content

parse_syslog

Function parse_syslog 

Source
pub fn parse_syslog(line: &str, config: &SyslogConfig) -> EventInputDecoded
Expand description

Parse a syslog line into an event.

If the syslog msg body contains a valid JSON object, returns a JsonEvent with syslog headers merged in. Otherwise returns a KvEvent with syslog fields as key-value pairs.