Data Source: oci_logging_log
This data source provides details about a specific Log resource in Oracle Cloud Infrastructure Logging service.
Gets the log object configuration for the log object OCID.
Example Usage
data "oci_logging_log" "test_log" {
#Required
log_group_id = oci_logging_log_group.test_log_group.id
log_id = oci_logging_log.test_log.id
}
Argument Reference
The following arguments are supported:
log_group_id
- (Required) OCID of a log group to work with.log_id
- (Required) OCID of a log to work with.
Attributes Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment that the resource belongs to.configuration
- Log object configuration.compartment_id
- The OCID of the compartment that the resource belongs to.source
- The source the log object comes from.category
- Log object category.parameters
- Log category parameters are stored here.resource
- The unique identifier of the resource emitting the log.service
- Service generating log.source_type
- The log source.- OCISERVICE: Oracle Service.
defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- The user-friendly display name. This must be unique within the enclosing resource, and it’s changeable. Avoid entering confidential information.freeform_tags
- 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. Example:{"Department": "Finance"}
id
- The OCID of the resource.is_enabled
- Whether or not this resource is currently enabled.log_group_id
- Log group OCID.log_type
- The logType that the log object is for, whether custom or service.retention_duration
- Log retention duration in 30-day increments (30, 60, 90 and so on until 180).state
- The pipeline state.tenancy_id
- The OCID of the tenancy.time_created
- Time the resource was created.time_last_modified
- Time the resource was last modified.