Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I change the log file location for Zookeeper in 16.01 ?

In 16.01, I see that we need to create a separate file for each component with the name <component-name>.properties in /opt/apigee/customer/application/ directory to set the properties with appropriate values. So the filename for Zookeeper would zookeeper.properties.

By default, the Apache Zookeeper log files are kept in /<inst_root>/apigee/var/log/zookeeper directory. I am not able to find any information on what property should I set to change the log file location for Zookeeper.

Can someone let me know how to change the log file location for zookeeper ?

Solved Solved
0 4 3,484
1 ACCEPTED SOLUTION

Not applicable

Hi there!

You should be able to change the Zookeeper log directory using the following steps:

1. Create /opt/apigee/etc/apigee-zookeeper.d/APIGEE_APP_LOGDIR.sh

2. Update the /opt/apigee/etc/apigee-zookeeper.d/APIGEE_APP_LOGDIR.sh with the below properties:

APIGEE_APP_LOGDIR=/foo/bar

You can follow similar approach to update the all other components log directory. Here is the sample:

a. Create /opt/apigee/etc/{component}.d/APIGEE_APP_LOGDIR.sh

b. Update the /opt/apigee/etc/{component}.d/APIGEE_APP_LOGDIR.sh with the below properties:

APIGEE_APP_LOGDIR=/foo/bar

where {component} can be apigee-zookeeper or apigee-cassandra or edge-management-server or edge-message-processor or edge-qpid-server, etc

Hope this helps.

Thanks,

Archendra

View solution in original post

4 REPLIES 4