We are migrating our Pega Application(V 8.6.1) which is currently running as a Weblogic on Oracle DB setup to Openshift Container(on same Oracle DB). We are trying to configure ECS formatting(https://www.elastic.co/guide/en/ecs-logging/java/current/setup.html) for logs. We added logback-ecs-encoder and ecs-logging-core jars to class path. Then updated EcsLayout to /pega/config/deploy/prlog4j2.xml. Just need to know where do we need to add the dependency. Can someone help with the same?
We came across the note that jars would suffice and don't need of dependency. so we are attempting the same. Thanks!
If you are not using a dependency management tool, like maven, you have to manually add both logback-ecs-encoder and ecs-logging-core jars to the classpath. For example to the $CATALINA_HOME/lib directory. Other than that, there are no required dependencies.