Creating a Load Balancer Log

Create an access or error log for a load balancer.

For prerequisite information, see Logging for Load Balancers.

Note

You can only create 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. Open the navigation menu, click Networking, and then click Load balancers. Click Load balancer. The Load balancers page appears.

  2. Select the Compartment from the list. All load balancers in that compartment are listed in tabular form.

  3. Select a State from the list to limit the load balancers displayed to that state.

  4. Select the load balancer for which you want to create a log. The load balancer's Details page appears.

  5. Click Logs under Resources. The Logs list appears. Entries for access and error logs are listed in tabular form.

  6. Click the Enable log switch for the access error category to enable error logging.

    The Enable log dialog box appears.

  7. Complete the following:

    • 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.

    • Log retention: Select the time period in months each error logging entry is to be retained from the list.

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

  8. Click Enable log.

The Logs list is updated to show the error log that you created. The error log is enabled by default.