CA API Gateway 9.x - How to customize default SSG logs folder
search cancel

CA API Gateway 9.x - How to customize default SSG logs folder

book

Article ID: 111854

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction


In some scenarios, it can be a requirement to customise the default SSG logs (and custom logs) folder path.
For example:
  • organisational requirements
  • bigger logs size rotation
  • security

 

Environment

Release: L7SGA299000-9.2-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU
Component:

Resolution


Create a new folder and assign correct ownership and permissions.

In this example, the folder is "/opt/customlogspath"


# mkdir /opt/customlogpath
# chown gateway:gateway /opt/customlogspath

# chmod 700 /opt/customlogpath


Edit the system.properties file and add the following line in order to define the new logs path


com.l7tech.server.logDirectory=/<new_log_path>


For example, in this case...


# vi /opt/SecureSpan/Gateway/node/default/etc/conf/system.properties


... and append


com.l7tech.server.logDirectory=/opt/customlogspath


Restart the Gateway service.


New log should be now generated in the custom path