Log Group Commands

The following are log group-related commands.

Create a new log group with a unique display name

Command
oci logging log-group create --compartment-id | -c <compartment_OCID> --display-name <log_group_name>

This call fails if the log group is already created with same displayName in the compartment.

Get a specified log group's information

Command
oci logging log-group get --log-group-id <log_group_OCID>

List all log groups for the specified compartment or tenancy

Command
oci logging log-group list --compartment-id | -c <compartment_OCID>

Updates an existing log group with the associated configuration

Command
oci logging log-group update --log-group-id <log_group_OCID>

This call fails if the log group does not exist.

Move a log group into a different compartment within the same tenancy

Command
oci logging log-group change-compartment --log-group-id <log_group_OCID>

When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources to a Different Compartment.

To delete a specified log group

Command
oci logging log-group delete --log-group-id <log_group_OCID>