Tagging a Log at Creation

Add metadata to a log when you first create it. This metadata enables you to define keys and values and associate them with resources.

  • See Creating a Log for more information on adding tags during log creation.

  • Use the --defined-tags or --freeform-tags options when running the oci logging log create command to tag a log when you create it:

    oci logging log create [...] [--defined-tags | --freeform-tags] tags 
  • Run the CreateLog operation to create a log. Include the definedTags and freeformTags attributes and their values.