Architecting, installing and maintaining your SAS environment

How to redirect logs from Meta Data server

Reply
Regular Learner
Posts: 1

How to redirect logs from Meta Data server

Hello,

 

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

Matej

 

Super User
Posts: 7,472

Re: How to redirect logs from Meta Data server

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 7,472

Re: How to redirect logs from Meta Data server

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Highlighted
Regular Contributor
Posts: 175

Re: How to redirect logs from Meta Data server

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.

SAS Employee
Posts: 242

Re: How to redirect logs from Meta Data server

@dolenmat,

 

"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

Ask a Question
Discussion stats
  • 4 replies
  • 258 views
  • 7 likes
  • 4 in conversation