<?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 Re: Missing machine tags in api response in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719702#M1654</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/164535"&gt;@aa.aa&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;

&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I'm afraid I don't think we can get all the machines with their tags with only 1 API execution.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;However, as "controller/sim/v2/user/machines" API returns the machine IDs, we can extract IDs by using a library like &lt;A href="https://jqlang.github.io/jq/" target="_self" rel="nofollow noopener noreferrer"&gt;jq&lt;/A&gt; .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Then, we can iterate through the ids to execute "controller/sim/v2/user/machines/&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;machineId&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" API for each machine id.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Jul 2023 01:47:37 GMT</pubDate>
    <dc:creator>Hiroki_Ito</dc:creator>
    <dc:date>2023-07-14T01:47:37Z</dc:date>
    <item>
      <title>Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719696#M1648</link>
      <description>&lt;P&gt;Running machine agent:&lt;/P&gt;

&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt; 2023-07-11 01:36:28.654 Using Agent Version [Machine Agent v23.6.0.3657 GA compatible with 4.4.1.0 Build Date 2023-06-22 09:28:42]
..
.. 
2023-07-11 01:36:33.954 Started AppDynamics Machine Agent Successfully.&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Added custom tags to the configuration as described &lt;A href="https://docs.appdynamics.com/appd/21.x/21.3/en/infrastructure-visibility/server-visibility/server-tagging#id-.ServerTaggingv21.1-customDefineandViewTagsforaServer" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt; and validated they show up in the UI:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaaa_0-1689065586533.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35535i9B65BA132C7C48B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Running an API call:&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;lt;appdynamics-controller&amp;gt;/controller/sim/v2/user/machines?type=CONTAINER&amp;amp;format=LITE&amp;amp;offset=0&amp;amp;limit=-1&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;get the vm back but the tags are empty:&lt;/P&gt;

&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;{"hostId":"aaa","name":"aaa","hierarchy":[],"properties":{"Processor|Logical Core Count":"2","vCPU":"2","Processor|Physical Core Count":"2","OS|Architecture":"x86_64","Hostname":"aaa","Bios|Version":"1.15.0-1","AppDynamics|Agent|Agent version":"Machine Agent v23.6.0.3657 GA compatible with 4.4.1.0 Build Date 2023-06-22 09:28:42","AppDynamics|Agent|Install Directory":"/root/appd_agent","OS|Kernel|Release":"5.14.0-307.el9.x86_64","AppDynamics|Agent|Build Number":"cdd5a21","AppDynamics|Machine Type":"NON_CONTAINER_MACHINE_AGENT","OS|Kernel|Name":"Linux","AppDynamics|Agent|Machine Info":"os.name=Linux|os.arch=amd64|os.version=5.14.0-307.el9.x86_64","Total|CPU|Logical Processor Count":"2","AppDynamics|Agent|JVM Info":"java.vm.name=OpenJDK 64-Bit Server VM|java.vendor=Azul Systems, Inc.|java.version=11.0.19|user.language=en|user.country=US|user.variant=unknown"},
"tags":{},"agentConfig":{"rawConfig":{}},"id":16583826,"memory":{},"volumes":[],"cpus":[],"networkInterfaces":[],"controllerConfig":{"rawConfig":{}},"simEnabled":true,"simNodeId":23402361,"dynamicMonitoringMode":"KPI","type":"PHYSICAL","historical":false},&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*as you can see -&amp;gt; "tags":{}&lt;/P&gt;
&lt;P&gt;Some additional logs from the agent:&lt;/P&gt;

&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[system-thread-0] 11 Jul 2023 01:37:04,274 DEBUG ConfigurationManager - Building configuration types for 'ServerMonitoring' -&amp;gt; {samplingInterval=30000, networkMonitorConfig={maxNumberNetworks=5, whitelistSelectorRegex=, blacklistSelectorRegex=^veth.*|^vnet.*}, defaultDiskSectorSize=512, memoryMonitorConfig={samplingInterval=3000}, basicEnabled=true, volumeMonitorConfig={maxNumberVolumes=5, whitelistSelectorRegex=, blacklistSelectorRegex=^/var/lib/docker/.*, samplingInterval=3000}, processMonitorConfig={maxClassIdLength=50, processSelectorRegex=^.+[^]]$, minLiveTimeMillisBeforeMonitoring=60000, maxNumberMonitoredClasses=20, defaultProcessClassSelector=}, percentileMonitorConfig={percentileEnabled=true}, tags={environment=[production], testingTagKey=[testingTagValue]}, cpusMonitorConfig={samplingInterval=3000}}&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should I add something to the API call? Is it a bug?&lt;/P&gt;
&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 08:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719696#M1648</guid>
      <dc:creator>aa_aa</dc:creator>
      <dc:date>2023-07-11T08:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719697#M1649</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/164535"&gt;@aa.aa&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Let's see if the community can jump in and help out. If you think something might be a bug, it would be best to also report that via Support.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-submit-a-Support-ticket-An-FAQ/m-p/28959#U28959" class="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;How do I submit a Support ticket? An FAQ&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you do submit a ticket and hear back from Support, could you please share any learnings back here as a reply?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, thanks for sharing the Docs resource, did you think everything was clear on that Doc? I can share feedback with the team if you think something was missing or unclear on that page.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 18:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719697#M1649</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2023-07-12T18:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719698#M1650</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/164535"&gt;@aa.aa&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for posting to the community.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;To get tags of the machine, could you please use the API below by specifying the target machine id?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;GET &amp;lt;appdynamics-controller&amp;gt;/controller/sim/v2/user/machines/&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;machineId&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;You can find the machine id from the URL when opening the target machine from the controller.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="URL.png" style="width: 667px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35538i4F4B73FA0B68994B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;
&lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;You can also find the id in the response of the "controller/sim/v2/user/machines" API as well.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 03:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719698#M1650</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2023-07-13T03:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719699#M1651</link>
      <description>&lt;P&gt;Hi thx for the replay.&lt;/P&gt;&lt;P&gt;Docs look ok, some wired loop links here and there but nothing much more..&lt;/P&gt;&lt;P&gt;But I did not find a proper api doc explaining what type call I can make and what should I expect as a response?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 07:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719699#M1651</guid>
      <dc:creator>aa_aa</dc:creator>
      <dc:date>2023-07-13T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719700#M1652</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/164535"&gt;@aa.aa&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;

&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;This is an internal API and is not an official API(which is documented in&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/extend-appdynamics/appdynamics-apis" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;AppDynamics APIs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;), so we don't have any public specifications/documents for this API.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Although we can try to use the API, it could also change in the future without notice as this is an internal API.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 07:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719700#M1652</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2023-07-13T07:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719701#M1653</link>
      <description>&lt;P&gt;Ok thx but is there a way to get all the machines with their tags instead of getting them one by one?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 11:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719701#M1653</guid>
      <dc:creator>aa_aa</dc:creator>
      <dc:date>2023-07-13T11:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719702#M1654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/164535"&gt;@aa.aa&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;

&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I'm afraid I don't think we can get all the machines with their tags with only 1 API execution.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;However, as "controller/sim/v2/user/machines" API returns the machine IDs, we can extract IDs by using a library like &lt;A href="https://jqlang.github.io/jq/" target="_self" rel="nofollow noopener noreferrer"&gt;jq&lt;/A&gt; .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Then, we can iterate through the ids to execute "controller/sim/v2/user/machines/&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;machineId&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;" API for each machine id.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jul 2023 01:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719702#M1654</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2023-07-14T01:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Missing machine tags in api response</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719703#M1655</link>
      <description>&lt;P&gt;Great thx a lot for the help:)&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 05:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Missing-machine-tags-in-api-response/m-p/719703#M1655</guid>
      <dc:creator>aa_aa</dc:creator>
      <dc:date>2023-07-16T05:03:18Z</dc:date>
    </item>
  </channel>
</rss>

