<?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: Machines property in Query Logs filter in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451921#M17535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can query the logs via Manager to see what request it's sending the Admin API, and it turns out to be an empty dict when querying for all machines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476031_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via the Admin API, any of the properties in the filter list are not in an array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/476032_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to query a machine, then it's passed in as a value within an array:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/476072_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easiest approach is monitor the network traffic when making requests via the Admin API or Manager and then re-create them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2019 18:32:20 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2019-12-12T18:32:20Z</dc:date>
    <item>
      <title>Machines property in Query Logs filter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451919#M17533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something confusing about the 'machines' property in the Query Logs filter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/enterprise-administration/server/logsquery.htm" title="https://developers.arcgis.com/rest/enterprise-administration/server/logsquery.htm"&gt;Query Logs—ArcGIS REST API: Administer your server | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wildcard for 'machines' seems not to be working in a Python script. But when I use the Admin page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://localhost:6080/arcgis/admin/logs/query" title="http://localhost:6080/arcgis/admin/logs/query"&gt;http://localhost:6080/arcgis/admin/logs/query&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this filter:&lt;/P&gt;&lt;P&gt;logFilter = "{'server': ['*'], 'services': ['*'], 'machines': ['*']}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this response:&lt;/P&gt;&lt;P&gt;{"status":"error","messages":["java.lang.NullPointerException"],"code":500}&lt;/P&gt;&lt;P&gt;I guess this means that no log messages are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I remove the machines part, it works ok:&lt;/P&gt;&lt;P&gt;logFilter = "{'server': ['*'], 'services': ['*']}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris Frenkel,&lt;/P&gt;&lt;P&gt;Staatsbosbeheer, the Netherlands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451919#M17533</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2019-12-12T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Machines property in Query Logs filter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451920#M17534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to try the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logFilter = "{'server': ['*'], 'services': ['*'], 'machines': ['*']}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logFilter = "{'server': ['*'], 'services': ['*'], 'machines': ['ALL']}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this produce the output that you expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 17:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451920#M17534</guid>
      <dc:creator>JacobSnyder1</dc:creator>
      <dc:date>2019-12-12T17:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Machines property in Query Logs filter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451921#M17535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can query the logs via Manager to see what request it's sending the Admin API, and it turns out to be an empty dict when querying for all machines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476031_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via the Admin API, any of the properties in the filter list are not in an array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/476032_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to query a machine, then it's passed in as a value within an array:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/476072_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easiest approach is monitor the network traffic when making requests via the Admin API or Manager and then re-create them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451921#M17535</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-12-12T18:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Machines property in Query Logs filter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451922#M17536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I tried this but it doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451922#M17536</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2019-12-13T10:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Machines property in Query Logs filter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451923#M17537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I decided to leave out the filter. If needed, I will let the script do the filtering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/machines-property-in-query-logs-filter/m-p/451923#M17537</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2019-12-13T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

