grippo 0.3.1

Grok, regex, CEL and scrubbing on typed primitives. Up to 9 times faster than the stock Rust regex.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# JLS 3.8: identifiers joined by dots.
JAVACLASS (?:[a-zA-Z$_][a-zA-Z$_0-9]*\.)*[a-zA-Z$_][a-zA-Z$_0-9]*
# StackTraceElement.toString: a file name, `Native Method` or `Unknown Source`, so spaces are allowed.
JAVAFILE [^():]+
JAVAMETHOD (?:<(?:cl)?init>|[a-zA-Z$_][a-zA-Z$_0-9]*)
# StackTraceElement.toString since Java 9: optional `loader/` and `module@version/` before the class, and the line number is absent for native and unknown sources.
JAVASTACKTRACEPART %{SPACE}at (?:[A-Za-z0-9$_.@+-]*/){0,2}%{JAVACLASS:class}\.%{JAVAMETHOD:method}\(%{JAVAFILE:file}(?::%{NONNEGINT:line})?\)

# Tomcat's request-processor threads are named like TP-Processor12.
JAVATHREAD [A-Z]{2}-Processor[0-9]+
JAVALOGMESSAGE .*
# java.util.logging SimpleFormatter: `MMM d, yyyy h:mm:ss a`, as in Jan 9, 2014 7:13:13 AM.
CATALINA_DATESTAMP %{MONTH} %{MONTHDAY}, [0-9]{4} (?:1[0-2]|[1-9]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)
# Log4j `yyyy-MM-dd HH:mm:ss,SSS Z`, as in 2014-01-09 17:32:25,527 -0800.
TOMCAT_DATESTAMP [0-9]{4}-%{MONTHNUM2}-%{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND} %{ISO8601_TIMEZONE}
CATALINALOG %{CATALINA_DATESTAMP:timestamp} %{JAVACLASS:class} %{JAVALOGMESSAGE:logmessage}
TOMCATLOG %{TOMCAT_DATESTAMP:timestamp} \| %{LOGLEVEL:level} \| %{JAVACLASS:class} - %{JAVALOGMESSAGE:logmessage}