08-02-2016 02:15 PM
Newbie here so take it easy on me. We have drivespace being eaten up on our server. I see alot of log files beneath the folder D:\sas94\config\Lev1\ in different folders. Can these be removed manually? Is it safe? Examples of names of files:
there is a gemfire.log that is over 4GB.
08-02-2016 04:28 PM
Are you referring to the SAS mid-tier server here since you mention Gemfire? If your log files are growing fast then there are at least 2 possible causes:
Investigating your logs and logging options should enable you to identify if either of these causes are present. Sure you can delete logs but that won't stop them growing again if options are not set appropriately.
08-02-2016 06:50 PM
I use cron jobs on Linux to purges old log files using the find command with mtime and delete options. You should be able to do a similar thing on Windows with the appropriate commands. I saw a StackOverflow question with a few examples: http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days
Of course, you'd need to be careful (and have a backup handy) when testing that type of process to make sure it only deletes log files and only in the right locations. The following SAS note will be helpful in identifying those locations: SAS Usage Note 55426: Locating the log files for the SAS® 9.4 middle tier
That's a pretty big gemfire log so as @SASKiwi points out you might want to look at the contents to see if there are any issues there.
08-04-2016 01:06 PM
in addition to all the great suggestions, you could check whether the Workspace Server log file is enabled. This does not
solve the size and "fill up" of the other SAS logs, however, if the Workspace Server log is enabled, it'll eat up lots of space.
Check \SAS config dir ...\Lev1\SASApp\WorkspaceServer.
Whether you'll remove/delete log files, consider whether your company might need to keep them for a certain period of time,
or, of keeping a certain timeframe might be important for auditing and the like.
This is a blog that might help as well: