oci_log_analytics_log_analytics_entity

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

Create a new log analytics entity.

Example Usage

resource "oci_log_analytics_log_analytics_entity" "test_log_analytics_entity" {
	#Required
	compartment_id = var.compartment_id
	entity_type_name = var.log_analytics_entity_entity_type_name
	name = var.log_analytics_entity_name
	namespace = var.log_analytics_entity_namespace

	#Optional
	cloud_resource_id = oci_log_analytics_cloud_resource.test_cloud_resource.id
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	hostname = var.log_analytics_entity_hostname
	management_agent_id = oci_management_agent_management_agent.test_management_agent.id
	metadata {

		#Optional
		items {

			#Optional
			name = var.log_analytics_entity_metadata_items_name
			type = var.log_analytics_entity_metadata_items_type
			value = var.log_analytics_entity_metadata_items_value
		}
	}
	properties = var.log_analytics_entity_properties
	source_id = oci_log_analytics_source.test_source.id
	time_last_discovered = var.log_analytics_entity_time_last_discovered
	timezone_region = var.log_analytics_entity_timezone_region
}

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

Import

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

$ terraform import oci_log_analytics_log_analytics_entity.test_log_analytics_entity "namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}"