<?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 How to clear SAS Server logs? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503518#M14634</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new admin to SAS but learning new things everyday. This issue just came up and not sure, how to handle it and looking for some guidance. Recently, looking through server logs files, I noticed that all server [1 MS, 1 CAS, 6 Workers] have huge log files that are taking a lot of disk space. My questions are: How to clean these logs files periodically and automatically? Is there a script that could help me to delete, 30 or 60 days old logs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to delete anything that could potentially cause other issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The files are located in directory:&amp;nbsp;/opt/sas/viya/config/var/log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of file names are like: log-20180423090000Z.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do appreciate your help!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 18:35:30 GMT</pubDate>
    <dc:creator>mimran</dc:creator>
    <dc:date>2018-10-11T18:35:30Z</dc:date>
    <item>
      <title>How to clear SAS Server logs?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503518#M14634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new admin to SAS but learning new things everyday. This issue just came up and not sure, how to handle it and looking for some guidance. Recently, looking through server logs files, I noticed that all server [1 MS, 1 CAS, 6 Workers] have huge log files that are taking a lot of disk space. My questions are: How to clean these logs files periodically and automatically? Is there a script that could help me to delete, 30 or 60 days old logs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to delete anything that could potentially cause other issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The files are located in directory:&amp;nbsp;/opt/sas/viya/config/var/log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of file names are like: log-20180423090000Z.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do appreciate your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503518#M14634</guid>
      <dc:creator>mimran</dc:creator>
      <dc:date>2018-10-11T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS Server logs?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503520#M14635</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/210614"&gt;@mimran&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Most of file names are like: log-20180423090000Z.zip&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Those are archived log messages. This process does not allow the ZIP files to be saved anywhere other than the default location. You can develop your own process for moving the ZIP files to another directory in order to manage disk space and for managing the log files that are not included in the ZIP files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.4&amp;amp;docsetId=callogging&amp;amp;docsetTarget=p0hx4xhylly19zn1nkmpinnav2a2.htm&amp;amp;locale=en#p0o2lpk1ziaikcn1v5efxmaf2mpi" target="_self"&gt;https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.4&amp;amp;docsetId=callogging&amp;amp;docsetTarget=p0hx4xhylly19zn1nkmpinnav2a2.htm&amp;amp;locale=en#p0o2lpk1ziaikcn1v5efxmaf2mpi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503520#M14635</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-10-11T18:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS Server logs?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503734#M14654</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;: Thank you so much for your reply! I was hoping that SAS has some scripts for this but provided document will work. Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 13:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-clear-SAS-Server-logs/m-p/503734#M14654</guid>
      <dc:creator>mimran</dc:creator>
      <dc:date>2018-10-12T13:59:38Z</dc:date>
    </item>
  </channel>
</rss>

