<?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: SAS Studio Login Failed due to excessive logs in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597197#M17450</link>
    <description>&lt;P&gt;I have created a script (on AIX) to clear most of this out on a monthly basis. The script is run on every 28th of a month, so it more or less uses a similar window:&lt;/P&gt;
&lt;PRE&gt;ARCFILE=/home/root/log/filelist_sasconf_`/usr/linux/bin/date +%Y%m`
echo &amp;gt; $ARCFILE
DATUM=`/usr/linux/bin/date --date="1 month ago" +%Y-%m`
rm -r /sasconf/Lev1/Backup/Results/${DATUM}*
rm -r /sasconf/Lev1/Backup/Logs/${DATUM}*
find /sasconf -name \*${DATUM}\* &amp;gt;&amp;gt; $ARCFILE
DATUM=`/usr/linux/bin/date --date="1 month ago" +%Y%m`
find /sasconf -name \*${DATUM}\* &amp;gt;&amp;gt; $ARCFILE

dsmc archive -filelist=$ARCFILE -deletefiles description="XXXXX" &amp;gt;&amp;gt; /home/root/log/archive_sasconf.log
&lt;/PRE&gt;
&lt;P&gt;It uses both date-stamp formats found in SAS log files; some of the files are simply removed (because irrelevant), and some are moved to the long-time archive. The final command starts the commandline client of IBM Tivoli Storage Manager (TSM).&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 07:15:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-10-17T07:15:27Z</dc:date>
    <item>
      <title>SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/592691#M17336</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running SAS v9.4 (TS1M5)&lt;/P&gt;&lt;P&gt;Studio is Release: 3.71 (Enterprise Edition)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently had an issue with users who could not login to SAS Studio due to insufficient space in /sasconfig. SAS support helped us correct the issue, which was excessive log build up in several subdirectories under /sasconfig. While I understand that it is important to have logs for numerous reasons, there doesn't appear to be a uniform process for cleaning out and/or archiving those logs using a management tool that could be based on date (e.g., delete if file date &amp;gt; 30 days from today) or other filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this end, I'm planning to develop a Unix system script with our Sys Admin to parse through the directories that SAS Support recommended for clean-up. My current plan is to run this quarterly in crontab as sasinst and use a 30 day filter as mentioned above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had to go through this? Any helpful hints? Are there any other methods for doing this that I haven't thought about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 14:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/592691#M17336</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2019-09-30T14:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/592750#M17339</link>
      <description>Have you seen this blog: &lt;A href="https://blogs.sas.com/content/sgf/2018/07/17/delete-sas-logs-admin/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2018/07/17/delete-sas-logs-admin/&lt;/A&gt;?</description>
      <pubDate>Mon, 30 Sep 2019 16:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/592750#M17339</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-30T16:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597136#M17447</link>
      <description>Thanks for the re-direct Josvander. That is a great blog post and it really goes towards what I'm trying to accomplish. Big Ed</description>
      <pubDate>Wed, 16 Oct 2019 23:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597136#M17447</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2019-10-16T23:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597197#M17450</link>
      <description>&lt;P&gt;I have created a script (on AIX) to clear most of this out on a monthly basis. The script is run on every 28th of a month, so it more or less uses a similar window:&lt;/P&gt;
&lt;PRE&gt;ARCFILE=/home/root/log/filelist_sasconf_`/usr/linux/bin/date +%Y%m`
echo &amp;gt; $ARCFILE
DATUM=`/usr/linux/bin/date --date="1 month ago" +%Y-%m`
rm -r /sasconf/Lev1/Backup/Results/${DATUM}*
rm -r /sasconf/Lev1/Backup/Logs/${DATUM}*
find /sasconf -name \*${DATUM}\* &amp;gt;&amp;gt; $ARCFILE
DATUM=`/usr/linux/bin/date --date="1 month ago" +%Y%m`
find /sasconf -name \*${DATUM}\* &amp;gt;&amp;gt; $ARCFILE

dsmc archive -filelist=$ARCFILE -deletefiles description="XXXXX" &amp;gt;&amp;gt; /home/root/log/archive_sasconf.log
&lt;/PRE&gt;
&lt;P&gt;It uses both date-stamp formats found in SAS log files; some of the files are simply removed (because irrelevant), and some are moved to the long-time archive. The final command starts the commandline client of IBM Tivoli Storage Manager (TSM).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 07:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597197#M17450</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-17T07:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597247#M17459</link>
      <description>Thanks Kurt, We are in a Linux environment and this is the script I'm working on. It mostly has to do with Web logs and all of the output is redirected to a file which will be emailed to admins. This is designed to run quarterly. All of the directories are recommended from SAS from SAS Problem Note 52315 &amp;amp; 54366. This is still in testing, so I DO NOT recommend anyone using it as is... BEGIN================================== # Run SAS services status command --- Send output to script log for delivery once completed /sasconfig/Lev1/sas.servers status # Run SAS services stop command --- Send output to script log for delivery once completed /sasconfig/Lev1/sas.servers stop echo 'CleanUp_Studio_Web_Logs.scr' echo echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/' echo find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/temp/* -print0 | xargs -0 rm -r -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/' echo find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/temp/* -print0 | xargs -0 rm -r -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/' echo find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/temp/* -print0 | xargs -0 rm -r -f -v find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/WebServer/logs/' echo find /sasconfig/Lev1/Web/WebServer/logs/ -mtime +30 -print0 | xargs -0 rm -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/gemfire/instances/ins_41415/ --&amp;gt; *.log &amp;amp; *.dat' echo find /sasconfig/Lev1/Web/gemfire/instances/ins_41415/*.log -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/gemfire/instances/ins_41415/*.dat -mtime +30 -print0 | xargs -0 rm -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/activemq/data/' echo find /sasconfig/Lev1/Web/activemq/data/* -print0 | xargs -0 rm -r -f -v echo echo 'Cleaning -- /sasconfig/Lev1/Web/Logs/SASServer1_1/ ../SASServer11_1/ ../SASServer2_1/' echo find /sasconfig/Lev1/Web/Logs/SASServer1_1/* -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/Logs/SASServer11_1/* -mtime +30 -print0 | xargs -0 rm -f -v find /sasconfig/Lev1/Web/Logs/SASServer2_1/* -mtime +30 -print0 | xargs -0 rm -f -v echo echo 'I Declare These Directories Cleansed' echo # Run SAS services start command --- Send output to script log for delivery once completed /sasconfig/Lev1/sas.servers start # Run SAS services status command --- Send output to script log for delivery once completed /sasconfig/Lev1/sas.servers status ===============================================END</description>
      <pubDate>Thu, 17 Oct 2019 10:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597247#M17459</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2019-10-17T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597248#M17460</link>
      <description>Epic fail on posting that script - So sorry!</description>
      <pubDate>Thu, 17 Oct 2019 10:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597248#M17460</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2019-10-17T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597250#M17461</link>
      <description>&lt;P&gt;Use the {i} button for posting such scripts. This usually keeps the original format.&lt;/P&gt;
&lt;P&gt;If it still fails to keep the linefeeds, open the script file with notepad++ or similar and do a copy/paste from there.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597250#M17461</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-17T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597251#M17462</link>
      <description />
      <pubDate>Thu, 17 Oct 2019 10:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597251#M17462</guid>
      <dc:creator>epniv</dc:creator>
      <dc:date>2019-10-17T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Login Failed due to excessive logs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597253#M17463</link>
      <description>&lt;PRE&gt;# Run SAS services status command  ---  Send output to script log for delivery once completed
/sasconfig/Lev1/sas.servers status

# Run SAS services stop command  ---  Send output to script log for delivery once completed
/sasconfig/Lev1/sas.servers stop

echo 'CleanUp_Studio_Web_Logs.scr'
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/'
echo
find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/temp/* -print0 | xargs -0 rm -r -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/'
echo
find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/temp/* -print0 | xargs -0 rm -r -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer11_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/'
echo
find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/logs/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/work/ -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/temp/* -print0 | xargs -0 rm -r -f -v
find /sasconfig/Lev1/Web/WebAppServer/SASServer2_1/work/Catalina/localhost/* -print0 | xargs -0 rm -r -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/WebServer/logs/'
echo
find /sasconfig/Lev1/Web/WebServer/logs/ -mtime +30 -print0 | xargs -0 rm -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/gemfire/instances/ins_41415/  --&amp;gt; *.log  &amp;amp;  *.dat'
echo
find /sasconfig/Lev1/Web/gemfire/instances/ins_41415/*.log -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/gemfire/instances/ins_41415/*.dat -mtime +30 -print0 | xargs -0 rm -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/activemq/data/'
echo
find /sasconfig/Lev1/Web/activemq/data/* -print0 | xargs -0 rm -r -f -v
echo
echo 'Cleaning -- /sasconfig/Lev1/Web/Logs/SASServer1_1/  ../SASServer11_1/  ../SASServer2_1/'
echo
find /sasconfig/Lev1/Web/Logs/SASServer1_1/* -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/Logs/SASServer11_1/* -mtime +30 -print0 | xargs -0 rm -f -v
find /sasconfig/Lev1/Web/Logs/SASServer2_1/* -mtime +30 -print0 | xargs -0 rm -f -v
echo
echo 'I Declare These Directories Cleansed'
echo

# Run SAS services start command  ---  Send output to script log for delivery once completed
/sasconfig/Lev1/sas.servers start

# Run SAS services status command  ---  Send output to script log for delivery once completed
/sasconfig/Lev1/sas.servers status&lt;/PRE&gt;
&lt;P&gt;Yep, {i} works. Opened the .txt with PSPad and did a copy/paste.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-Login-Failed-due-to-excessive-logs/m-p/597253#M17463</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-17T10:51:25Z</dc:date>
    </item>
  </channel>
</rss>

