Splunk AppDynamics

How can I set the Controller's Port using Environmentvalriable?

CommunityUser
Splunk Employee
Splunk Employee

How can I set the Controller's Port using Environmentvalriable?

whether it will be like below.

{

"controller": {
"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",
"port": %APDDYNAMICS.CONTROLLER.PORT%,
}
}

I don't think it's correct. Is there any way we can inject the port environment variable.

I used https://docs.appdynamics.com/display/PRO45/AppDynamicsConfig.json+File
Also the host value which I was reading from the Environment variable, whether it's correct?

"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",
Labels (1)
Tags (1)
0 Karma

Edward_Ferron
Explorer

You can set the environment variable APPDYNAMICS_CONTROLLER_HOST_NAME in the Environment variables of the machine (or process) like any other environment variable. This will override the JSON values that are set.

Linux
export APPDYNAMICS_CONTROLLER_HOST_NAME=yourcontroller

Windows

setx APPDYNAMICS_CONTROLLER_HOST_NAME=yourcontroller

Note: setx is part of Windows 2008 and higher and will take effect in new sessions / command prompts. It is persistant unlike the set command.

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...