09-15-2017 03:14 AM
I have an issue with redirecting logs from the SAS applications.
My enviroment is single server application server installation.
What I'm trying to achieve is to redirect logs from the default folder which is in my case "/srv/app/sasva/Config/Lev1/SASMeta/MetadataServer/Logs" to "srv/log/MetadataServer"
I have modified the logconfig.xml file where I have changed the path to the new one. However when I'm trying to start server again via the sas.servers script the server doesn't start properly.
Can you please advise me where should I make changes as well to successfully redirect those logs?
Other logs such as Enviroment Manager was redirected succesfully with just modified xml config file.
Same issue is with ObjectSpawner which doesn't start properly via sas.servers script with modified log config.
Thanks in advance
09-15-2017 03:23 AM
Make sure to use the correct user for starting the metadata server. This should be the SAS install user.
And then make sure that that user has rwx permissions on the directory where the logs should be stored.
09-15-2017 03:25 AM
BTW unless that log directory is on another storage volume (b/c of space issues or similar), I advise against changing the default setting. You will have to make that change again when upgrading your SAS, making that process more complicated.
09-15-2017 04:03 AM
Easiest would be to replace the original ../Logs directory with a symbolic link to where you want the logs to go. This is all done on OS level so no SAS re-config is required. SAS doesn't even know the logs are being redirected.
You can even point all logs to a dedicated disk if need be.
09-15-2017 09:23 AM
"srv/log/MetadataServer" is an incorrect path. Should be something like /srv/log/MetadataServer, otherwise, you have to create /srv/app/sasva/Config/Lev1/SASMeta/MetadataServer/srv/log/MetadataServer