Tagging a Log Group When Updating
Add metadata to an existing log group. This metadata enables you to define keys and values and associate them with resources.
- Open the navigation menu and click Observability & Management. Under Logging, click Log Groups.
- Under List scope, select the compartment that contains the log group that you want to add tags to.
- Under Log Group, click the name of the log group.
- On the log group details page, add or edit tags as needed:
- To add one or more tags, click Add tags and enter the tag namespace (for a defined tag), key, and value.
- To edit or remove a tag, click the Tags tab, click the edit icon next to a tag, and change its value or remove it.
Use the
--defined-tags
or--freeform-tags
options when running the oci logging log-group update command to tag a log group when you update an existing one:oci logging log-group update [...] [--defined-tags | --freeform-tags] tags
Run the UpdateLogGroup operation to edit a log group. Include the
definedTags
andfreeformTags
attributes and their values.