Moving a Log Between Log Groups

Move a log to a different log group.

    1. On the Logs list page, find the log that you want to work with. If you need help finding the list page or the log, see Listing Logs.
    2. To view the log groups in a different compartment, use the Compartment filter to switch compartments.

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.

    3. From the the Actions menu (three dots) for the log, select Move resource.
      The Move resource panel opens.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select Move resource.
  • Use the oci logging log change-log-group command and required parameters to move a log between log groups:

    oci logging log change-log-group --log-group-id log_group_ocid --log-id log_ocid [OPTIONS]

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

  • Run the ChangeLogLogGroup operation to move a log between log groups.