Broadcom API Gateway - How to customise default SSG logs folder
search cancel

Broadcom API Gateway - How to customise default SSG logs folder

book

Article ID: 111854

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

In some scenarios, it may be needed to change the default SSG logs (and custom sink logs) folder path.
For example:

  • organisational requirements
  • bigger log's size rotation
  • security

Environment

Broadcom API Gateway 10.1/11+

Resolution

Create a new log folder (replace /<customlogspath> with the desired path e.g. /tmp/logs)

# mkdir /<customlogspath>

Assign to the folder the correct permissions/ownership

# chown gateway:gateway /<customlogspath>

# chmod 775 /<customlogspath>

Edit the system.properties file and use the following property to instruct the Gateway to write logs in the custom path:

com.l7tech.server.logDirectory  

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

... and append the following under the Configuration properties section:

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

Fully stop and then start the Gateway service for the change to be effective

# service ssg stop/start