Package org.opennms.netmgt.syslogd
Class Rfc5424SyslogParser
- java.lang.Object
-
- org.opennms.netmgt.syslogd.SyslogParser
-
- org.opennms.netmgt.syslogd.Rfc5424SyslogParser
-
public class Rfc5424SyslogParser extends SyslogParser
A parser that handles the new Syslog standard (as defined in RFC5424). It has strict parsing that should match the grammar specified in the RFC, although it currently discards structured data. Like the SyslogNGParser, it ignores forwarding-regexp, matching-group-host, and matching-group-message in favor of stricter parsing of the known grammer.
-
-
Constructor Summary
Constructors Constructor Description Rfc5424SyslogParser(SyslogdConfig config, java.nio.ByteBuffer text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.regex.Pattern
getPattern()
protected SyslogMessage
parse()
protected java.util.Date
parseDate(java.lang.String dateString)
-
Methods inherited from class org.opennms.netmgt.syslogd.SyslogParser
find, fromByteBuffer, getConfig, getMatcher, getParserInstance, getText, matched, matches, traceEnabled
-
-
-
-
Constructor Detail
-
Rfc5424SyslogParser
public Rfc5424SyslogParser(SyslogdConfig config, java.nio.ByteBuffer text)
-
-
Method Detail
-
getPattern
protected java.util.regex.Pattern getPattern()
- Overrides:
getPattern
in classSyslogParser
-
parse
protected SyslogMessage parse() throws SyslogParserException
- Overrides:
parse
in classSyslogParser
- Throws:
SyslogParserException
-
parseDate
protected java.util.Date parseDate(java.lang.String dateString)
- Overrides:
parseDate
in classSyslogParser
-
-