<?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 Query server logs not returning expected results in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580069#M22341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to query the ArcGIS Server logs to find Warning and Severe messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the documentation I found this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;"Only records with a log level at or more severe than this level are returned."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;However, when I do a query with a Python script and I set the log level to "WARNING",&amp;nbsp; the script only returns the WARNING messages and not the SEVERE messages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Am I doing something wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;I am using ArcGIS Enterprise 10.6.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Joris Frenkel, Staatsbosbeheer, the Netherlands&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2019 08:41:51 GMT</pubDate>
    <dc:creator>jorisfrenkel</dc:creator>
    <dc:date>2019-12-12T08:41:51Z</dc:date>
    <item>
      <title>Query server logs not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580069#M22341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to query the ArcGIS Server logs to find Warning and Severe messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the documentation I found this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;"Only records with a log level at or more severe than this level are returned."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;However, when I do a query with a Python script and I set the log level to "WARNING",&amp;nbsp; the script only returns the WARNING messages and not the SEVERE messages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Am I doing something wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;I am using ArcGIS Enterprise 10.6.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Joris Frenkel, Staatsbosbeheer, the Netherlands&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580069#M22341</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2019-12-12T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query server logs not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580070#M22342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, the script assumes the http endpoint is available. You may want to consider setting Server to https only or http and https and updating your script to use the https endpoint for security reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/2146383/https-connection-python" title="https://stackoverflow.com/questions/2146383/https-connection-python"&gt;ssl - HTTPS connection Python - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I don't see any issues when running the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output querying for WARNING errors:&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/476073_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Output querying for SEVERE errors:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/476074_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580070#M22342</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-12-12T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query server logs not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580071#M22343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Thanks for trying the script. I am not sure if I understand all of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the cause of this turned out to be a problem with the logfilter, just as in the other question you answered:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/245273"&gt;Machines property in Query Logs filter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filter:&lt;/P&gt;&lt;P&gt;"{'server': ['*'], 'services': ['*']"&lt;/P&gt;&lt;P&gt;resulted in leaving out log messages&amp;nbsp;caused by mapservices, e.g. "Baselayers.MapServer", it looks like it only returned log messages from Soap or Rest.&lt;/P&gt;&lt;P&gt;I am somehow suspicious that the wildcard doesn't work when there is a dot in the item to be filtered, like "Baselayers.MapServer" or &amp;lt;servername&amp;gt;.&amp;lt;domain&amp;gt;.local or whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to leave out the filtering at all, and if needed let the script do the filtering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580071#M22343</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2019-12-13T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query server logs not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580072#M22344</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;Are you familiar with the System Log Parser?&amp;nbsp; This is brilliant.&amp;nbsp; We often download the logs from ArcGIS Server onto a PC with WinSCP, then run this tool against them.&amp;nbsp; It will summaries the logs into an excel spread sheet so you can identify where all your resources are being used.&amp;nbsp; We had severe issues last year with performance, and this tool allowed us to narrow down quickly which services to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcgismonitor.maps.arcgis.com/home/item.html?id=dacebd64a0a04c87b1c48905e2cfc70d"&gt;System Log Parser for ArcGIS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 23:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-server-logs-not-returning-expected-results/m-p/580072#M22344</guid>
      <dc:creator>MarkChilcott</dc:creator>
      <dc:date>2019-12-17T23:58:39Z</dc:date>
    </item>
  </channel>
</rss>

