Change the Default Location or Names of the Controller Logs

  1. Set the new location for start.ini by editing the following property:
    -Dcom.appdynamics.controller.logs.dir=<New log location>

    If you specify a directory that does not exist, it is created when you restart the application server.

  2. Change the database.log location by opening the <controller_home>/db/db.cnf file. You can also change the db.cnf file from the Enterprise Console GUI Database Configurations page. Doing so also restarts the database server.
    Note: The Enterprise Console takes a backup when you modify these configurations.
  3. Set the value of the log-error property to the new location of the database.log file. This directory location must exist before you restart the Controller or you will get start-up errors.
  4. Copy if desired any existing logs from the default directory (<controller_home>/logs) to the new location.
  5. Restart the Controller. See Start or Stop the Controller.
  6. Verify that the server.log files are being written to the new location and remove the old log files. The database.log location is <controller_home>/db/logs/database.log.