Documentation ¶ Overview ¶ Package parser provides a syslog parser that can parse both RFC3164 and RFC5424 with best effort. Index ¶ func Parse(b []byte) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Parse ¶ func Parse(b []byte) (string, error) Parse parses a syslog message and returns a json encoded representation of the message. If an RFC3164 message is detected and there is no hostname field in the message, the hostname field is set to "localhost". Types ¶ This section is empty. Source Files ¶ View all Source files parse.go Click to show internal directories. Click to hide internal directories.