Configuring Pega logs for ECS Formatting

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(Get started with ECS Logging Java | ECS Logging Java) 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?

<dependency>
    <groupId>co.elastic.logging</groupId>
    <artifactId>log4j2-ecs-layout</artifactId>
    <version>${ecs-logging-java.version}</version>
</dependency>

@Jey2705

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.