Change Gateway default log file location
search cancel

Change Gateway default log file location


Article ID: 99244


Updated On:


CA API Gateway


We would like to change the gateway default log files output location to use company standards for logs.

Currently it is in the default /opt/SecureSpan/Gateway/node/default/var/logs folder.

How can we do this?


API Gateway 9.X, 10.X


The API Gateway default log directory is set as : 


This path is hardcoded. 

If there is a specific reason you want to change the path of the logs. 

There is a kb article on increasing the space for /opt .

The default is to store the logs in that directory, and that is the recommended configuration for the appliance and the software form-factor. 

From a unix perspective, other options that are used for placing files in a different directory would be to create a symbolic link. 

To use a symbolic link for /opt/SecureSpan/Gateway/node/default/var/logs directory to a new directory on another mounted drive.

  • To do so, you will need to stop the gateway, add the link, then start the gateway again. An example for a appliance is written below.

         1. Stop SSG: service ssg stop
         2. Move to the current logs directory: cd /opt/SecureSpan/Gateway/node/default/var/
         3. Back up each log: mv (filename.)logs (filename.)logs-old
         4. Create the Link: ln -s /(newdisk)/logs logs
         5. Restart SSG: service ssg start
  • Or mount directly another volume on /opt/SecureSpan/Gateway/node/default/var/logs 

    But it is probably best to speak to your local sys-admin about the options.