Data Source: oci_logging_log_saved_searches
This data source provides the list of Log Saved Searches in Oracle Cloud Infrastructure Logging service.
Lists LogSavedSearches for this compartment.
Example Usage
data "oci_logging_log_saved_searches" "test_log_saved_searches" {
#Required
compartment_id = var.compartment_id
#Optional
log_saved_search_id = oci_logging_log_saved_search.test_log_saved_search.id
name = var.log_saved_search_name
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.log_saved_search_id
- (Optional) OCID of the LogSavedSearch.name
- (Optional) Resource name.
Attributes Reference
The following attributes are exported:
log_saved_search_summary_collection
- The list of log_saved_search_summary_collection.
LogSavedSearch Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment that the resource belongs to.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"}
description
- Description for this resource.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.name
- The user-friendly display name. This must be unique within the enclosing resource, and it’s changeable. Avoid entering confidential information.query
- The search query that is saved.state
- The state of the LogSavedSearchtime_created
- Time the resource was created.time_last_modified
- Time the resource was last modified.