This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to log synapse/axis2 API requests in a custom directory, add the the access_log_directory property to the <ESB_HOME>/repository/conf/access-log.properties file and specify the path to the custom directory. For example, access_log_dire ctory="/logs/wso2esblogs"Similarly, you can configure the following properties in the <ESB_HOME>/repository/conf/access-log.properties file based on how the log format you want to log have for synapse/axis2 API requests.

  • Default access log pattern
    e.g., access_log_pattern=%{X-Forwarded-For}i %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"

  • combinded combined log pattern
    e.g.,  access_log_pattern=%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"

  • common log pattern
    e.g.,  access_log_pattern=%h %l %u %t \"%r\" %s %b

  • file prefix
    e.g.,  access_log_prefix=http_access_

  • file suffix
    e.g.,  access_log_suffix=.log

  • file date format
    e.g.,  access_log_file_date_format=yyyy-MM-dd