Log Group Commands
The following are log group-related commands.
Create a new log group with a unique display name
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
oci logging log-group get --log-group-id <log_group_OCID>
List all log groups for the specified compartment or tenancy
oci logging log-group list --compartment-id | -c <compartment_OCID>
Updates an existing log group with the associated configuration
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
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
oci logging log-group delete --log-group-id <log_group_OCID>