You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JAVACLASS Grok pattern does not match tomcats logger, Tomcats logger uses square brackets and is unchangeable according to documentation which says:
The calls to javax.servlet.ServletContext.log(...) to write log messages are handled by internal Tomcat logging. Such messages are logged to the category named
org.apache.catalina.core.ContainerBase.[${engine}].[${host}].[${context}]
This logging is performed according to the Tomcat logging configuration. You cannot overwrite it in a web application.
Example of an unmatched tomcat log coming from spring boot:
2023-03-21 11:52:47.478 [http-nio-8071-exec-8] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/applicationpath] threw exception
JAVACLASS Grok pattern does not match tomcats logger, Tomcats logger uses square brackets and is unchangeable according to documentation which says:
Example of an unmatched tomcat log coming from spring boot:
2023-03-21 11:52:47.478 [http-nio-8071-exec-8] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/applicationpath] threw exception
I suggest a change to current grok pattern:
JAVACLASS (?:[a-zA-Z$_][a-zA-Z$_0-9]*\.)*[a-zA-Z$_][a-zA-Z$_0-9]*
to
JAVACLASS (?:[\[a-zA-Z$_][a-zA-Z$_0-9\]]*\.)*[\[a-zA-Z$_][a-zA-Z$_0-9\]]*
The text was updated successfully, but these errors were encountered: