Changing the server output log contents#

The server stores its log by using Apache Log4j version 1.2.16. You can edit the Log4j settings to change the format of the log and the information that is added to the log.

The Log4j logging settings are stored in the file app_data/conf/server/, where app_data is the application data folder. You can edit this file directly on the server or open it by clicking Settings > Logging.

Note: Do not change the name and location of the server log. If the location of the deployserver.out file is changed in, you will not be able to view or download the server log file from the user interface.

For example, to log all REST calls that are made to the server, uncomment the following lines of code at the bottom of the file:

log4j.appender.audit.layout.ConversionPattern=%d{ISO8601} - %m%n, audit

Now, all REST calls are stored in the file server/var/log/user_audit.log, as in the following example:

2015-08-05 11:20:23,882 - User admin from host
accessing: GET @ /rest/deploy/environment
2015-08-05 11:20:24,009 - User admin from host
accessing: POST @ /rest/deploy/environment/compliancies

To log authentication failures, add the following line of code to the file:

For more information on Log4j, see

Parent topic: Logging