Creating a Log Group

Create a log group that functions as a logical container for organizing logs. You must create a log group before you can create a log.

    1. On the Log groups list page, select Create log group. If you need help finding the list page, see Listing Log Groups.

      The Create log group panel opens.

    2. Enter the following information:
      • Compartment: The compartment in which you want to create the log group. This field is already filled in based on your compartment choice in step 2.
      • Name: A name for this log group. The first character of a log group name must be a letter. For more information, see Log and Log Group Names. Avoid entering confidential information.

      • Description: A friendly description.
      • Tags: Optionally, enter tagging information.
    3. Select Create.

      The log group is created and the details page for it opens. On this page, you can perform the following actions:

      • Edit the group
      • Move the group to a different compartment
      • Add tags
      • Delete the log group
      • View log group information and tags
      • View log group resources (explore the log group, view the logs included in the log group, create custom or service logs, and view metrics)

        The Monitoring tab in a log group details in a log group detail page functions the same as in a log detail page. See Getting a Log's Details for more information.

  • Use the oci logging log-group create command and required parameters to create a log group:

    oci logging log-group create --compartment-id compartment_ocid --display-name display_name [OPTIONS]

    For a complete list of parameters and variable options for CLI commands, see the Command Line Reference.

  • Run the CreateLogGroup operation to create a log group.