Enabling a Load Balancer Log

Enable an access or error log for a load balancer.

For prerequisite information, see Logging for Load Balancers.

Note

You can only enable an access or error log when there no existing logs of that type present. A load balancer can only have one access and one error log each.

Using the Console

  1. On the Load balancers list page, find the load balancer that you want to work with. If you need help finding the list page or the load balancer, see Listing Load Balancers.
  2. On the load balancer's details page, select Logs.
  3. From the Actions menu for the log category you want, select Enable.
  4. Enter the following information:
    • Compartment: Select the compartment within which the log file resides from the list.

    • Log group: Select an existing log group from the list or click Create new group where you can enter the name and description of a new logging group within which your log resides.

    • Log name: Enter the name of the log.

    See Logs and Log Groups for more information on log and log groups, including naming syntax guidelines.

  5. (Optional) Select Show advanced options to use these features. The Log retention panel appears.
  6. Select the time period in months each error logging entry is to be retained from the Log retention list.
  7. (Optional) Apply any tags to the log. See Overview of Tagging for more information.
  8. Select Enable log.
  9. To enable the request ID option to help track requests and troubleshoot logs, click Edit next to Request ID

    Use the toggle button to enable the request ID. The Request ID can help you with tracking and managing a request by providing a unique request identifier exposed in HTTP request and response headers.

    When the request ID is enabled, the default header name X-Request-Id is included in the HTTP request header from the load balancer to the backend and HTTP header responses. If not enabled, the load balancer won't add this unique request ID header to the request passed through to the load balancer backend or to the response returned.

    You can use the Request ID header name option to enter a different header name instead of using the default. Any custom header name must start with "X-".