BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mimran
Fluorite | Level 6

Hi,

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?

 

I do not want to delete anything that could potentially cause other issues. 

 

The files are located in directory: /opt/sas/viya/config/var/log

 

Most of file names are like: log-20180423090000Z.zip

 

I do appreciate your help!

1 ACCEPTED SOLUTION

Accepted Solutions
alexal
SAS Employee

@mimran,

Most of file names are like: log-20180423090000Z.zip

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.

 

https://go.documentation.sas.com/?cdcId=calcdc&cdcVersion=3.4&docsetId=callogging&docsetTarget=p0hx4...

View solution in original post

2 REPLIES 2
alexal
SAS Employee

@mimran,

Most of file names are like: log-20180423090000Z.zip

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.

 

https://go.documentation.sas.com/?cdcId=calcdc&cdcVersion=3.4&docsetId=callogging&docsetTarget=p0hx4...

mimran
Fluorite | Level 6

@alexal: Thank you so much for your reply! I was hoping that SAS has some scripts for this but provided document will work. Cheers!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2914 views
  • 2 likes
  • 2 in conversation