<?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: Location of log files in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352240#M8352</link>
    <description>&lt;P&gt;Thank you ArtC for your reply and info.&amp;nbsp; I did go ahead and downloaded LogConfigSweeper utility in our development environment. Here is the issue I am encountering with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;two servers OA and VA. On the OA I have the following directories under SASConfig (Certificates, Meta and OA).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the LogConfigSweeper.bat file is looking for level_env.bat file and that file does exists on our OA server but in two different folders and they are: \SAS\SASConfig\Meta\Lev1 AND \SAS\SASConfig\OA\Lev1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I went ahead and place LogConfigSweeper into \SAS\SASConfig\OA\Lev1\Web\Utilities folder and did run \SAS\SASConfig\OA\Lev1\Web\Utilities&amp;gt;logconfigsweeper.bat objectspawner -output c:\tooloutput but results are some .xml files and couple of .bat files and no log files.&amp;nbsp; If I run it with -all command then I get lots of subfolders with mix of log and other files!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the beginning of the LogConfigSweeper.bat there is a call to level_env.bat, I was wondering if I need to change that to match the location where my level_env.bat files are located.&lt;/P&gt;&lt;P&gt;setlocal&lt;/P&gt;&lt;P&gt;call "%~dp0..\..\level_env.bat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again your input much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Iman&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 16:52:48 GMT</pubDate>
    <dc:creator>L2Fly</dc:creator>
    <dc:date>2017-04-21T16:52:48Z</dc:date>
    <item>
      <title>Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/351949#M8340</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;We have two servers in our SAS development environment, OA and VA. As a new SAS Admin I want to know the best practice of archiving the log files?&amp;nbsp; When I search on servers, I will find many log files in various locations and not sure which one I should archive.&amp;nbsp; I am also wondering if I need to stop SAS services before copy and archiving the log files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked at SAS 9.4 Intelligence Platform: System Administration Guide but couldn’t find answers to my questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or direction is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 23:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/351949#M8340</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-04-20T23:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352070#M8346</link>
      <description>&lt;P&gt;If you have not already seen it, you may find this article of interest &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Sweep-up-my-SAS-logs/ta-p/257385" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Sweep-up-my-SAS-logs/ta-p/257385&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 07:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352070#M8346</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-04-21T07:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352092#M8348</link>
      <description>&lt;P&gt;Firstly, to locate your log files, the best place to look is in the &lt;STRONG&gt;$SASCONFIG/Lev1/Documents&lt;/STRONG&gt; folder of each server, which contains files which were dynamically created when your platform was installed, including a detailed list of what was installed on that server, how to start &amp;amp; stop the services/spawners and (in your case) the location of all the log files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what to do with your log files.&amp;nbsp;SAS does not have a log file archiving &amp;amp; purging policy - that's up to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suggestion is each month, in each folder zip the previous months' logs (201701.zip, 201702.zip, etc), and delete any logs older than (say) 3 months - if you REALLY need log files older than that, you should be able to retrieve them from your server's filesystem backup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best of luck.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 09:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352092#M8348</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-04-21T09:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352240#M8352</link>
      <description>&lt;P&gt;Thank you ArtC for your reply and info.&amp;nbsp; I did go ahead and downloaded LogConfigSweeper utility in our development environment. Here is the issue I am encountering with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;two servers OA and VA. On the OA I have the following directories under SASConfig (Certificates, Meta and OA).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the LogConfigSweeper.bat file is looking for level_env.bat file and that file does exists on our OA server but in two different folders and they are: \SAS\SASConfig\Meta\Lev1 AND \SAS\SASConfig\OA\Lev1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I went ahead and place LogConfigSweeper into \SAS\SASConfig\OA\Lev1\Web\Utilities folder and did run \SAS\SASConfig\OA\Lev1\Web\Utilities&amp;gt;logconfigsweeper.bat objectspawner -output c:\tooloutput but results are some .xml files and couple of .bat files and no log files.&amp;nbsp; If I run it with -all command then I get lots of subfolders with mix of log and other files!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the beginning of the LogConfigSweeper.bat there is a call to level_env.bat, I was wondering if I need to change that to match the location where my level_env.bat files are located.&lt;/P&gt;&lt;P&gt;setlocal&lt;/P&gt;&lt;P&gt;call "%~dp0..\..\level_env.bat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again your input much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Iman&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 16:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352240#M8352</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-04-21T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352241#M8353</link>
      <description>&lt;P&gt;Thank you Andrew, will give it a try and will let you know.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 16:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352241#M8353</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-04-21T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Location of log files</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352343#M8354</link>
      <description>&lt;P&gt;Hi Andrew - the&amp;nbsp;&lt;STRONG&gt;$SASCONFIG/Lev1/Documents&lt;/STRONG&gt; was very helpful. &amp;nbsp;It looks like on our OA server I have only one set a log files for SAS Metadata Server and on our VA the Stored Process Server, Workspcace Server, SAS Data Step Batch Server, SAS Apawners, ... all are creating a log file under the same directory.&lt;/P&gt;&lt;P&gt;Now just going to create some poweshell scripts to do the archiveing for me. &amp;nbsp;Thanks again for your help and info. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Location-of-log-files/m-p/352343#M8354</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-04-21T21:56:35Z</dc:date>
    </item>
  </channel>
</rss>

