oci_log_analytics_namespace_lookup

This resource provides the Namespace Lookup resource in Oracle Cloud Infrastructure Log Analytics service.

Creates a lookup with the specified name, type and description. The csv file containing the lookup content is passed in as binary data in the request.

Example Usage

resource "oci_log_analytics_namespace_lookup" "test_namespace_lookup" {
	#Required
	lookup_name = var.namespace_lookup_lookup_name
	namespace = var.namespace_lookup_namespace
	register_lookup_file = var.namespace_lookup_register_lookup_file
	type = var.namespace_lookup_type

	#Optional
	categories {

		#Optional
		description = var.namespace_lookup_categories_description
		display_name = var.namespace_lookup_categories_display_name
		is_system = var.namespace_lookup_categories_is_system
		name = var.namespace_lookup_categories_name
		type = var.namespace_lookup_categories_type
	}
	char_encoding = var.namespace_lookup_char_encoding
	compartment_id = var.namespace_lookup_compartment_id
	default_match_value = var.namespace_lookup_default_match_value
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.namespace_lookup_description
	fields {

		#Optional
		common_field_name = var.namespace_lookup_fields_common_field_name
		default_match_value = var.namespace_lookup_fields_default_match_value
		display_name = var.namespace_lookup_fields_display_name
		is_common_field = var.namespace_lookup_fields_is_common_field
		match_operator = var.namespace_lookup_fields_match_operator
		name = var.namespace_lookup_fields_name
		position = var.namespace_lookup_fields_position
	}
	freeform_tags = {"bar-key"= "value"}
	is_hidden = var.namespace_lookup_is_hidden
	max_matches = var.namespace_lookup_max_matches
}

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 Namespace Lookup * update - (Defaults to 20 minutes), when updating the Namespace Lookup * delete - (Defaults to 20 minutes), when destroying the Namespace Lookup

Import

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

$ terraform import oci_log_analytics_namespace_lookup.test_namespace_lookup "namespaces/{namespaceName}/lookups/{lookupName}"