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(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?
<dependency> <groupId>co.elastic.logging</groupId> <artifactId>log4j2-ecs-layout</artifactId> <version>${ecs-logging-java.version}</version> </dependency>