oci_log_analytics_log_analytics_log_group

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

Creates a new log group in the specified compartment with the input display name. You may also specify optional information such as description, defined tags, and free-form tags.

Example Usage

resource "oci_log_analytics_log_analytics_log_group" "test_log_analytics_log_group" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.log_analytics_log_group_display_name
	namespace = var.log_analytics_log_group_namespace

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.log_analytics_log_group_description
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_log_analytics_log_analytics_log_group.test_log_analytics_log_group "namespaces/{namespaceName}/logAnalyticsLogGroups/{logAnalyticsLogGroupId}"