Splunk AppDynamics

How do I 'clean up' a Java agent install

CommunityUser
Splunk Employee
Splunk Employee

All,

We have a Java agent installation included in our host images. What are the best practices for creating an clonable agent install that can be used dynamically start up the agent on different? Should we use ENV vars or Java system properties with a startup script?

What if we need to update the agent? Are there references to 'other' files that need to be considered? Like init.d startup scripts? The documentation just says archive the old and copy in the new. This seems awfully simplistic. Are there other dependencies that should be taken into consideration that may not be documented?

Labels (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

You will have to update the controller-info.xml file that has the information about your controller if you are using that file.

I find this tool pretty helpful: Javascript obfuscator

0 Karma

Lim_Park
Explorer

Best practice would be to put any "static" content in the controller-info.xml file and any "dynamic" content as environment variables or system properties that can be managed/configured at deployment time. If all the agent properties you use are available as either environment variables or system properties, there is nothing stopping you from completly managing them via the environment variables or system properties if you have means to do so as part of your provisioning/deployment process. Also keep in mind there is "agent.properties" file that can be utilized as well.

For agent upgrades, any setting you have put into the config files will need to be "merged" or reconciled with the new version when you drop that in. If only using environment variables or system properties, then, I think you probably don't have much to worry about in this aspect 🙂

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Only thing that comes to my mind is the path to javaagent.jar

like if you are using /opt/appdynamics/javaagent_home/verxxx/javaagent.jar then you will have to update that.

The other way is to create a sym link to verXXX directory each time you install a new version and use this symlink in the path to javaagent.jar in your configurations.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thank you for the response. I'll give the ideas a try.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

You will have to update the controller-info.xml file that has the information about your controller if you are using that file.

Also, if you are using ssl and have used your self signed cert then you may also have to update that.

Other than that, it is simple, yes !

0 Karma
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 ...