<?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: Roll over SAS Studio logs based on size in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414272#M11218</link>
    <description>&lt;P&gt;Look at the logconfig.xml of your workspace server.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 07:22:00 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-11-17T07:22:00Z</dc:date>
    <item>
      <title>Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414157#M11211</link>
      <description>&lt;P&gt;Hi Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to check if we can update any config file so that the SAS Studio mid tier logs are rolled over based on the file size. The log grows at a tremendous pace and would like to ensure that we keep an eye on its size. It is present under&lt;/P&gt;&lt;P&gt;&amp;lt;sas config&amp;gt;/Lev1/Web/Logs/SASServer2*/SASStudioMidTier.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414157#M11211</guid>
      <dc:creator>Kamsher</dc:creator>
      <dc:date>2017-11-16T21:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414272#M11218</link>
      <description>&lt;P&gt;Look at the logconfig.xml of your workspace server.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 07:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414272#M11218</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-17T07:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414306#M11223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161743"&gt;@Kamsher&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not the workspace server logs, but&amp;nbsp;"sas/config/Lev1/Web/Common/LogConfig/SASStudio-log4j.xml"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are looking for to un-comment the rolling appended functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  &amp;lt;!-- A time/date based rolling appender
    &amp;lt;appender class="org.apache.log4j.DailyRollingFileAppender" name="SAS_FILE"&amp;gt;
        &amp;lt;param name="datePattern" value="'.'yyyy-MM-dd"/&amp;gt;
        &amp;lt;param name="append" value="true"/&amp;gt;
        &amp;lt;param name="file" value="${config.lev.web.appserver.logs.dir}/SASStudioMidTier3.4.log"/&amp;gt;
        &amp;lt;layout class="com.sas.svcs.logging.CustomPatternLayout"&amp;gt;
            &amp;lt;param name="ConversionPattern" value="%d [%t] %-5p [%u] %c - %m%n"/&amp;gt;
        &amp;lt;/layout&amp;gt;
    &amp;lt;/appender&amp;gt;
    --&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 10:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414306#M11223</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-11-17T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414409#M11241</link>
      <description>Thanks Juan. This helps. But can you also let me know what changes do I need to make in order to roll over the logs based on size? Looks like this piece will roll over the log based on time stamp?</description>
      <pubDate>Fri, 17 Nov 2017 15:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414409#M11241</guid>
      <dc:creator>Kamsher</dc:creator>
      <dc:date>2017-11-17T15:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414411#M11243</link>
      <description>&lt;P&gt;I believe there is no documentation about it in documentation.sas.com ( &lt;A href="http://documentation.sas.com/?docsetId=logug&amp;amp;docsetTarget=p0vt6dps7nzkbgn0zntzi3qs3a0d.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=logug&amp;amp;docsetTarget=p0vt6dps7nzkbgn0zntzi3qs3a0d.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; ), however this system is based on a broadly commonly used Log4J and Apache.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wiki.apache.org/logging-log4j/Log4jXmlFormat" target="_blank"&gt;https://wiki.apache.org/logging-log4j/Log4jXmlFormat&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;
&amp;lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&amp;gt;
&amp;lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&amp;gt;
  &amp;lt;appender name="stdout" class="org.apache.log4j.ConsoleAppender"&amp;gt; 
    &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt; 
      &amp;lt;!-- Pattern to output the caller's file name and line number --&amp;gt;
      &amp;lt;param name="ConversionPattern" value="%5p [%t] (%F:%L) - %m%n"/&amp;gt; 
    &amp;lt;/layout&amp;gt; 
  &amp;lt;/appender&amp;gt; 
  &amp;lt;appender name="R" class="org.apache.log4j.RollingFileAppender"&amp;gt; 
    &amp;lt;param name="file" value="example.log"/&amp;gt;
    &lt;STRONG&gt;&amp;lt;param name="MaxFileSize" value="100KB"/&amp;gt;&lt;/STRONG&gt;
    &amp;lt;!-- Keep one backup file --&amp;gt;
    &amp;lt;param name="MaxBackupIndex" value="1"/&amp;gt;
    &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt; 
      &amp;lt;param name="ConversionPattern" value="%p %t %c - %m%n"/&amp;gt; 
    &amp;lt;/layout&amp;gt; 
  &amp;lt;/appender&amp;gt; 
  &amp;lt;root&amp;gt; 
    &amp;lt;priority value ="debug" /&amp;gt; 
    &amp;lt;appender-ref ref="stdout" /&amp;gt; 
    &amp;lt;appender-ref ref="R" /&amp;gt; 
  &amp;lt;/root&amp;gt;
&amp;lt;/log4j:configuration&amp;gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414411#M11243</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-11-17T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414417#M11244</link>
      <description>Awesome, thanks Juan &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I really appreciate your help.</description>
      <pubDate>Fri, 17 Nov 2017 15:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/414417#M11244</guid>
      <dc:creator>Kamsher</dc:creator>
      <dc:date>2017-11-17T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Roll over SAS Studio logs based on size</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/583280#M17036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On .&lt;EM&gt;../config/Lev1/Web/Common/LogConfig&lt;/EM&gt; there is a config file for each components on my web server. There is any way to change make this change to all (general config file) or I need to change one by one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 17:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Roll-over-SAS-Studio-logs-based-on-size/m-p/583280#M17036</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2019-08-22T17:50:12Z</dc:date>
    </item>
  </channel>
</rss>

