当我启动App-dynamics机器代理时,它没有将任何日志写入日志文件夹

时间:2019-12-30 17:16:37

标签: appdynamics

当我启动App-dynamics机器代理(machineagent-bundle-64bit-linux-4.4.3.1214)时,它没有将任何日志写入日志文件夹。我该如何解决?

[ec2-user@ip-172-31-85-179 machine-agent]$ **/home/ec2-user/machine-agent/jre/bin/java -jar /home/ec2-user/machine-agent/machineagent.jar**

结果:

Using Java Version [1.8.0_231] for Agent
Using Agent Version [Machine Agent v4.5.16.2357 GA compatible with 4.4.1.0 Build Date 2019-11-06 21:59:42]
[INFO] Agent logging directory set to: [/home/ec2-user/machine-agent]
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

..它就在这里停止。

1 个答案:

答案 0 :(得分:0)

错误消息告诉您在类路径上找不到log4j2.xml,log4j2-test.xml,log4j2.properties或log4j2-test.properties,因此它改用默认配置,这将记录错误到控制台。

要解决此问题,您需要将这些文件之一放在类路径上,或者将log4j2.configurationFile系统属性设置为指向您的配置。