Package org.opennms.netmgt.syslogd
Class SyslogNGParser
- java.lang.Object
-
- org.opennms.netmgt.syslogd.SyslogParser
-
- org.opennms.netmgt.syslogd.SyslogNGParser
-
public class SyslogNGParser extends SyslogParser
A stricter variant of theCustomSyslogParser
which parses Syslog-NG's default format. It ignores forwarding-regexp, matching-group-host, and matching-group-message and instead relies on a well-known properly-formatted syslog message.
-
-
Constructor Summary
Constructors Constructor Description SyslogNGParser(SyslogdConfig config, ByteBuffer text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pattern
getPattern()
protected SyslogMessage
parse()
-
Methods inherited from class org.opennms.netmgt.syslogd.SyslogParser
find, fromByteBuffer, getConfig, getMatcher, getParserInstance, getText, matched, matches, parseDate, traceEnabled
-
-
-
-
Constructor Detail
-
SyslogNGParser
public SyslogNGParser(SyslogdConfig config, ByteBuffer text)
-
-
Method Detail
-
getPattern
protected Pattern getPattern()
- Overrides:
getPattern
in classSyslogParser
-
parse
protected SyslogMessage parse() throws SyslogParserException
- Overrides:
parse
in classSyslogParser
- Throws:
SyslogParserException
-
-