Java openjdk version "1.8.0_302"
As per the suggestion (Get started | ECS Logging Java Reference [1.x] | Elastic) I have been successfully using
jul-ecs-formatter.jar by adding them to the
CLASSPATH environment variable in
With the appropriate
logging.properties configuration the Tomcat logs are produced in JSON format.
However, due to various reasons with the way we deploy Tomcat applications, I would like to move away from referencing these jars in the
CLASSPATH environment variable.
I have tried various alternate configurations, putting the jars in
lib/, adding them to
conf/catalina.properties, and so on. But nothing else seems to work, i.e. the logs are no longer produced in JSON format.
My question - Is adding these two jars to the Java
CLASSPATH environment variable the only way to get these to be recognized by Tomcat?