<?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: Copy GIS Server Logs Real-time to a network share? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/copy-gis-server-logs-real-time-to-a-network-share/m-p/1407865#M39181</link>
    <description>&lt;P&gt;As the ArcGIS Server install contains python - you could use python on a scheduled task to copy the log files to your network share as often as you'd like.&lt;/P&gt;&lt;P&gt;You would need:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; shutil
src=r'c:\arcgisserver\logs\mymachine'&lt;BR /&gt;dst = r'\\myshare\allmylogs\machine3'
shutil.copyfile(src, dst)

or&lt;BR /&gt;
shutil.copy(src, dst)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 08:18:10 GMT</pubDate>
    <dc:creator>A_Wyn_Jones</dc:creator>
    <dc:date>2024-04-10T08:18:10Z</dc:date>
    <item>
      <title>Copy GIS Server Logs Real-time to a network share?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/copy-gis-server-logs-real-time-to-a-network-share/m-p/1406899#M39169</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/windows/specify-server-log-settings.htm" target="_self"&gt;Specify server log settings&lt;/A&gt;&amp;nbsp;&amp;nbsp;"&lt;SPAN class=""&gt;The default directory where the server writes its logs is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;c:\arcgisserver\logs&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;The log path must be set to a local directory..." but I have a need to have the log files on a network share (many multi-machine sites). Anyone got some voo-doo magic they can share that can mirror the GIS Server logs?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 01:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/copy-gis-server-logs-real-time-to-a-network-share/m-p/1406899#M39169</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2024-04-07T01:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copy GIS Server Logs Real-time to a network share?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/copy-gis-server-logs-real-time-to-a-network-share/m-p/1407865#M39181</link>
      <description>&lt;P&gt;As the ArcGIS Server install contains python - you could use python on a scheduled task to copy the log files to your network share as often as you'd like.&lt;/P&gt;&lt;P&gt;You would need:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; shutil
src=r'c:\arcgisserver\logs\mymachine'&lt;BR /&gt;dst = r'\\myshare\allmylogs\machine3'
shutil.copyfile(src, dst)

or&lt;BR /&gt;
shutil.copy(src, dst)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/copy-gis-server-logs-real-time-to-a-network-share/m-p/1407865#M39181</guid>
      <dc:creator>A_Wyn_Jones</dc:creator>
      <dc:date>2024-04-10T08:18:10Z</dc:date>
    </item>
  </channel>
</rss>

