oci_logging_log_saved_search

This resource provides the Log Saved Search resource in Oracle Cloud Infrastructure Logging service.

Creates a new LogSavedSearch.

Example Usage

resource "oci_logging_log_saved_search" "test_log_saved_search" {
	#Required
	compartment_id = var.compartment_id
	name = var.log_saved_search_name
	query = var.log_saved_search_query

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.log_saved_search_description
	freeform_tags = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Log Saved Search * update - (Defaults to 20 minutes), when updating the Log Saved Search * delete - (Defaults to 20 minutes), when destroying the Log Saved Search

Import

LogSavedSearches can be imported using the id, e.g.

$ terraform import oci_logging_log_saved_search.test_log_saved_search "id"