How to disable nginx logs in Private Cloud version 16.01 or higher ?

We observed that the nginx router logs are taking lot of space. Can you please let us know how we can disable access and error logs for nginx routers in Private Cloud versions 16.01 or higher ?

0 4 563
4 REPLIES 4

To disable access and error logs on nginx routers, you can send them to /dev/null. You can do this by following the below steps:


1. Add the below properties into /<inst_root>/apigee/customer/application/router.properties file

conf_load_balancing_load.balancing.driver.nginx.access.log=/dev/null 
conf_load_balancing_load.balancing.driver.nginx.error.log=/dev/null

Note: If the file router.properties doesn’t exist, create it and add the above mentioned properties.


2. Restart the router

/<inst_root>/apigee/apigee-service/bin/apigee-service edge-router restart 

Not applicable

Is There any way we can rotate nginx router logs?

Not applicable

Is There any way we can rotate nginx router logs?