digitalocean / captainslog

A Syslog Protocol Parser
Mozilla Public License 2.0
136 stars 19 forks source link

Problem: want to suppot JSON without cee tag #60

Closed taotetek closed 7 years ago

taotetek commented 7 years ago

This PR adds support for finding JSON in the Content field of an RFC3164 message without requiring the @cee cookie in the message body. To stay efficient, if JSON parsing is enabled (OptionDontParseJSON was not passed to NewParser), ParseContent will perform a check to determine if the Content probably contains a JSON object.