Redirect Agent Output to Stdout
It is a best practice to redirect agent output to stdout in containerized environments. If you build your own Java Agent init container image, you can redirect the Java agent output to stdout by updating the ver<version>/conf/logging/log4j2.xml file that is provided in the download package. Add two <AppenderRef ref="Console"/> elements as shown in the example log4j2.xml file. If you use a pre-built image from Splunk AppDynamics on Docker Hub, you can replace the default example log4j2.xml file using a Config Map. Follow the same procedure shown for Copy the Controller Certificates to the Container.