This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Access Logs

The access logs contain entries for service and REST API invocations and for Management Console access. The service/API invocation log resides in the <ESB_HOME>/repository/logs folder and has a default name of http_access_<YYYY>_<MM>_<DD>.log, such as http_access_2013_01_01.log for activity on January 1, 2013. Similarly, the Management Console access log is written to the file <ESB_HOME>/repository/logs/http_access_management_console_<YYYY>_<MM>_<DD>.log. Both access logs are rotated daily.

To customize the Management Console access log, including the location where the file is written and the format, you can modify the org.apache.catalina.valves.AccessLogValve attributes in <ESB_HOME>/repository/conf/tomcat/catalina-server.xml. You cannot change the location, file name, or format of the service/API invocation logs.

The access log entries for service/API invocations use a modified version of the Apache combined log format, as follows:

%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i"

The X-Forwarded-For header is appended to the beginning of the usual combined log format in order to correctly identify the original node that sent the request when requests may go through a proxy such as a load balancer. The X-Forwarded-For header must be present in the incoming request for this to be logged. 

You can disable the access logs for service/API invocations if you need to improve performance. For more information, see Performance Tuning.