@InterfaceAudience.Private @InterfaceStability.Evolving public class SyslogParser extends Object
| Constructor and Description | 
|---|
| SyslogParser() | 
| Modifier and Type | Method and Description | 
|---|---|
| Event | parseMessage(String msg,
            Charset charset,
            Set<String> keepFields)Parses a Flume Event out of a syslog message string. | 
| protected long | parseRfc3164Time(String ts)Parse the RFC3164 date format. | 
| protected long | parseRfc5424Date(String msg)Parse date in RFC 5424 format. | 
public Event parseMessage(String msg, Charset charset, Set<String> keepFields)
msg - Syslog message, not including the newline characterIllegalArgumentException - if unable to successfully parse messageprotected long parseRfc5424Date(String msg)
msg - protected long parseRfc3164Time(String ts)
ts - RFC3164-compatible timestamp to be parsedCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.