pub fn parse_syslog(line: &str, config: &SyslogConfig) -> EventInputDecodedExpand 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.