Tagging a Log When Updating

Add metadata to an existing log. This metadata enables you to define keys and values and associate them with resources.

    1. Open the navigation menu and click Observability & Management. Under Logging, click Logs.
    2. Under List scope, select the compartment that contains the log that you want to add tags to.
    3. Click the name of the log.
    4. On the log 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 on the log details page, 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 update command to tag a log when you update it:

    oci logging log update [...] [--defined-tags | --freeform-tags] tags 
  • Run the UpdateLog operation to edit a log's configuration. Include the definedTags and freeformTags attributes and their values.