Hi all,

I am trying to forward the logs generated on a server to a centralized log
collector (using rsyslog), one of the features I would like to use the
ability to group messages by using their timestamp as the start of the
message.
By reading the documentation at
https://tomcat.apache.org/tomcat-9.0-doc/logging.html#Console, I can't see
the proper way to  get a common format (preferably with timestamp), or ar
tleast save the outputs into three different types in different files?

Some of the logs are displayed like this (severity in brackets but no
timestamp)

>
> [WARN] Web application uses
> org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to
> use org.apache.axis2.webapp.AxisAdminServlet instead
> [INFO] Clustering has been disabled
> [INFO] Deploying module: script-1.6.2 -
> file:/var/lib/tomcat8/webapps/WS_Revisiones/WEB-INF/modules/scripting-1.6.2.mar
>
Stack traces are displayed like this (no severity and no timestamp)

> MultiException stack 1 of 2
> java.lang.NoClassDefFoundError: javax/activation/DataSource
>         at java.base/java.lang.Class.getDeclaredConstructors0(Native
> Method)
>         at
> java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
>         at
> java.base/java.lang.Class.getDeclaredConstructors(Class.java:2357)
>         at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1306)
>         at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1302)
>         at java.base/java.security.AccessController.doPrivileged(Native
> Method)
>
Also some other are like this (timestamp with ms + severity + context in
brackets

> 21-May-2019 13:03:22.474 INFO [localhost-startStop-1]
> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
> complete list of JARs that were scanned but no TLDs were found in them.
> Skipping unneeded JARs during scanning can improve startup time and JSP
> compilation time.
>

Reply via email to