<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I set the Controller's Port using Environmentvalriable? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-can-I-set-the-Controller-s-Port-using-Environmentvalriable/m-p/734158#M8838</link>
    <description>&lt;P&gt;How can I set the Controller's Port using Environmentvalriable?&lt;/P&gt;
&lt;P&gt;whether it will be like below.&lt;/P&gt;
&lt;PRE&gt;{

"controller": {
"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",
"port": %APDDYNAMICS.CONTROLLER.PORT%,
}
}&lt;/PRE&gt;
&lt;P&gt;I don't think it's correct. Is there any way we can inject the port environment variable.&lt;/P&gt;
&lt;P&gt;I used&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/AppDynamicsConfig.json+File" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/AppDynamicsConfig.json+File&lt;/A&gt;&lt;BR /&gt;Also the host value which I was reading from the Environment variable, whether it's correct?&lt;/P&gt;
&lt;PRE&gt;"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Jun 2019 08:20:38 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2019-06-27T08:20:38Z</dc:date>
    <item>
      <title>How can I set the Controller's Port using Environmentvalriable?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-can-I-set-the-Controller-s-Port-using-Environmentvalriable/m-p/734158#M8838</link>
      <description>&lt;P&gt;How can I set the Controller's Port using Environmentvalriable?&lt;/P&gt;
&lt;P&gt;whether it will be like below.&lt;/P&gt;
&lt;PRE&gt;{

"controller": {
"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",
"port": %APDDYNAMICS.CONTROLLER.PORT%,
}
}&lt;/PRE&gt;
&lt;P&gt;I don't think it's correct. Is there any way we can inject the port environment variable.&lt;/P&gt;
&lt;P&gt;I used&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/AppDynamicsConfig.json+File" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/AppDynamicsConfig.json+File&lt;/A&gt;&lt;BR /&gt;Also the host value which I was reading from the Environment variable, whether it's correct?&lt;/P&gt;
&lt;PRE&gt;"host": "%APPDYNAMICS.CONTROLLER.HOSTNAME%",&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jun 2019 08:20:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-can-I-set-the-Controller-s-Port-using-Environmentvalriable/m-p/734158#M8838</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-06-27T08:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the Controller's Port using Environmentvalriable?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-can-I-set-the-Controller-s-Port-using-Environmentvalriable/m-p/734159#M8839</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Linux&lt;BR /&gt;export APPDYNAMICS_CONTROLLER_HOST_NAME=yourcontroller&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Windows&lt;/P&gt;
&lt;P&gt;setx APPDYNAMICS_CONTROLLER_HOST_NAME=yourcontroller&lt;BR /&gt;&lt;BR /&gt;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.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 18:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-can-I-set-the-Controller-s-Port-using-Environmentvalriable/m-p/734159#M8839</guid>
      <dc:creator>Edward_Ferron</dc:creator>
      <dc:date>2019-07-27T18:57:14Z</dc:date>
    </item>
  </channel>
</rss>

