Splunk AppDynamics

Getting the Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration) error

CommunityUser
Splunk Employee
Splunk Employee

[aims@mywiz1031 bin]$ ./java -jar /home/aims/machineagent.jar
Using Java Version [1.8.0_162] for Agent
Using Agent Version [Machine Agent v4.5.5.1784 GA compatible with 4.4.1.0 Build Date 2018-11-02 01:36:01]
[INFO] Agent logging directory set to: [/home/aims]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration), not marked as ignorable (57 known properties: "agent-config-update-interval", "main-config-timeout-millis", "proxyUsePreemptiveAuth", "sam-event-update-interval-millis", "proxyPort", "client-gzip-enabled", "agent-registration-interval", "controller-port", "docker-enabled", "agent-request-max-retry-period", "account-access-key", "dotnet-compatibility-mode", "bindMountOfHostRoot", "controller-keystore-filename", "force-agent-registration", "use-simple-hostname", "credential-store-filename", "account-name", "use-encrypted-credentials", "docker-engine-url", "sam-state-update-interval-millis", "controller-keystore-password", "proxyHost", "controller-host", "extensions-max-start-time", "credential-store-password", "asymmetric-key-password", "proxyPasswordFile", "sam-config-update-interval-millis", "asymmetric-key-alias", "controller-ssl-enabled", "agent-request-max-retries", "compatibility-mode", "use-ssl-client-auth", "proxyUsername", "application-name", "machine-path", "metric-aggregator-cache-expiration-seconds" [truncated]])
at [Source: java.io.StringReader@114a85c2; line: 84, column: 44] (through reference chain: com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration["agent-runtime-dir"])
Please see startup.log in the current working directory for details.
Could not log exception details to startup file. Showing on the console instead.
[aims@mywiz1031 bin]$ sudo su -
[sudo] password for aims:
Last login: Thu Nov 15 05:54:52 UTC 2018 on pts/8
[root@mywiz1031 ~]# pwd
/root
[root@mywiz1031 ~]# cd /home/aims/
[root@mywiz1031 aims]# cd jre
[root@mywiz1031 jre]# cd bin
[root@mywiz1031 bin]# pwd
/home/aims/jre/bin
[root@mywiz1031 bin]# ./java -jar /home/aims/machineagent.jar
Using Java Version [1.8.0_162] for Agent
Using Agent Version [Machine Agent v4.5.5.1784 GA compatible with 4.4.1.0 Build Date 2018-11-02 01:36:01]
[INFO] Agent logging directory set to: [/home/aims]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration), not marked as ignorable (57 known properties: "agent-config-update-interval", "main-config-timeout-millis", "proxyUsePreemptiveAuth", "sam-event-update-interval-millis", "proxyPort", "client-gzip-enabled", "agent-registration-interval", "controller-port", "docker-enabled", "agent-request-max-retry-period", "account-access-key", "dotnet-compatibility-mode", "bindMountOfHostRoot", "controller-keystore-filename", "force-agent-registration", "use-simple-hostname", "credential-store-filename", "account-name", "use-encrypted-credentials", "docker-engine-url", "sam-state-update-interval-millis", "controller-keystore-password", "proxyHost", "controller-host", "extensions-max-start-time", "credential-store-password", "asymmetric-key-password", "proxyPasswordFile", "sam-config-update-interval-millis", "asymmetric-key-alias", "controller-ssl-enabled", "agent-request-max-retries", "compatibility-mode", "use-ssl-client-auth", "proxyUsername", "application-name", "machine-path", "metric-aggregator-cache-expiration-seconds" [truncated]])
at [Source: java.io.StringReader@114a85c2; line: 84, column: 44] (through reference chain: com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration["agent-runtime-dir"])
Please see startup.log in the current working directory for details.

Labels (1)
0 Karma

Naoto_Yamamoto
Path Finder

Hi Srinivas,

Thanks for posting the question on the Community. 

Could you try to remove the 'agent-runtime-dir' xml tag from the agent controller-info.xml file, and restart the agent to check the results?

If it does not work, could you try to put below jvm option to see the results?

-Dappdynamics.agent.runtime.dir

Also, could you share your machine agent version? 

Let me know if this helped you.

Many thanks,

Naoto

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...