Skip to content

Logging: Log

Manage OCI Logging resources from Kubernetes. This page is generated from checked-in package metadata, CRD schemas, and sample manifests.

Resource Snapshot

Field Value
Service logging
Resource Log
API Version logging.oracle.com/v1beta1
Package Logging
Support Status Preview
Latest Released Version v2.1.0-alpha
Install Namespace oci-service-operator-logging-system

Spec Fields

This summary shows the top-level spec fields. Use the full API reference for nested fields, defaults, and enum values.

Field Description Type Required
configuration LogConfiguration defines nested fields for Log.Configuration. object No
definedTags Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} map[string, map[string, string]] No
displayName The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information. string Yes
freeformTags Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} map[string, string] No
isEnabled Whether or not this resource is currently enabled. boolean No
logGroupId The OCID of the log group that owns this log. string Yes
logType The logType that the log object is for, whether custom or service. string Yes
retentionDuration Log retention duration in 30-day increments (30, 60, 90 and so on until 180). integer No

Status Fields

This summary shows the top-level status fields. Use the full API reference for nested fields, defaults, and enum values.

Field Description Type Required
compartmentId The OCID of the compartment that the resource belongs to. string No
configuration LogConfiguration defines nested fields for Log.Configuration. object No
definedTags Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} map[string, map[string, string]] No
displayName The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information. string No
freeformTags Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} map[string, string] No
id The OCID of the resource. string No
isEnabled Whether or not this resource is currently enabled. boolean No
lifecycleState The pipeline state. string No
logGroupId Log group OCID. string No
logType The logType that the log object is for, whether custom or service. string No
retentionDuration Log retention duration in 30-day increments (30, 60, 90 and so on until 180). integer No
status - object Yes
tenancyId The OCID of the tenancy. string No
timeCreated Time the resource was created. string No
timeLastModified Time the resource was last modified. string No

Sample Manifest

This example is generated from the checked-in sample manifest at config/samples/logging_v1beta1_log.yaml. Replace placeholder values before applying it.

Open the rendered sample page

#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

#
# Replace the OCI identifiers and logging source values below before running e2e.
#
apiVersion: logging.oracle.com/v1beta1
kind: Log
metadata:
  name: log-sample
spec:
  logGroupId: ocid1.loggroup.oc1..exampleuniqueID
  displayName: log-sample
  logType: SERVICE
  isEnabled: true
  retentionDuration: 30
  configuration:
    source:
      sourceType: OCISERVICE
      service: service_name
      resource: ocid1.resource.oc1..exampleuniqueID
      category: category_name