oci_logging_unified_agent_configuration

This resource provides the Unified Agent Configuration resource in Oracle Cloud Infrastructure Logging service.

Create unified agent configuration registration.

Example Usage

resource "oci_logging_unified_agent_configuration" "test_unified_agent_configuration" {
	#Required
	compartment_id = var.compartment_id
	description = var.unified_agent_configuration_description
	display_name = var.unified_agent_configuration_display_name
	is_enabled = var.unified_agent_configuration_is_enabled
    description = var.unified_agent_configuration_description
	display_name = var.unified_agent_configuration_display_name
	service_configuration {
		#Required
		configuration_type = var.unified_agent_configuration_service_configuration_configuration_type

		#Optional
		application_configurations {
			#Required
			destination {

				#Optional
				compartment_id = var.compartment_id
				metrics_namespace = var.unified_agent_configuration_service_configuration_application_configurations_destination_metrics_namespace
			}
			source_type = var.unified_agent_configuration_service_configuration_application_configurations_source_type

			#Optional
			source {

				#Optional
				name = var.unified_agent_configuration_service_configuration_application_configurations_source_name
				scrape_targets {

					#Optional
					k8s_namespace = var.unified_agent_configuration_service_configuration_application_configurations_source_scrape_targets_k8s_namespace
					name = var.unified_agent_configuration_service_configuration_application_configurations_source_scrape_targets_name
					resource_group = var.unified_agent_configuration_service_configuration_application_configurations_source_scrape_targets_resource_group
					resource_type = var.unified_agent_configuration_service_configuration_application_configurations_source_scrape_targets_resource_type
					service_name = oci_core_service.test_service.name
					url = var.unified_agent_configuration_service_configuration_application_configurations_source_scrape_targets_url
				}
			}
			sources {

				#Optional
				advanced_options {

					#Optional
					is_read_from_head = var.unified_agent_configuration_service_configuration_application_configurations_sources_advanced_options_is_read_from_head
				}
				name = var.unified_agent_configuration_service_configuration_application_configurations_sources_name
				parser {
					#Required
					parser_type = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_parser_type

					#Optional
					delimiter = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_delimiter
					expression = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_expression
					field_time_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_field_time_key
					format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_format
					format_firstline = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_format_firstline
					grok_failure_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_grok_failure_key
					grok_name_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_grok_name_key
					is_estimate_current_event = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_estimate_current_event
					is_keep_time_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_keep_time_key
					is_merge_cri_fields = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_merge_cri_fields
					is_null_empty_string = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_null_empty_string
					is_support_colonless_ident = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_support_colonless_ident
					is_with_priority = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_is_with_priority
					keys = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_keys
					message_format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_message_format
					message_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_message_key
					multi_line_start_regexp = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_multi_line_start_regexp
					nested_parser {

						#Optional
						parse_nested = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_nested_parser_parse_nested
						separator = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_nested_parser_separator
						time_format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_nested_parser_time_format
						time_type = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_nested_parser_time_type
					}
					null_value_pattern = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_null_value_pattern
					parse_nested = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_parse_nested
					patterns {

						#Optional
						field_time_format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_patterns_field_time_format
						field_time_key = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_patterns_field_time_key
						field_time_zone = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_patterns_field_time_zone
						name = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_patterns_name
						pattern = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_patterns_pattern
					}
					record_input {

						#Optional
						dimensions = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_record_input_dimensions
						namespace = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_record_input_namespace
						resource_group = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_record_input_resource_group
					}
					rfc5424time_format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_rfc5424time_format
					separator = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_separator
					syslog_parser_type = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_syslog_parser_type
					time_format = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_time_format
					time_type = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_time_type
					timeout_in_milliseconds = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_timeout_in_milliseconds
					types = var.unified_agent_configuration_service_configuration_application_configurations_sources_parser_types
				}
				paths = var.unified_agent_configuration_service_configuration_application_configurations_sources_paths
				source_type = var.unified_agent_configuration_service_configuration_application_configurations_sources_source_type
			}
			unified_agent_configuration_filter {

				#Optional
				allow_list = var.unified_agent_configuration_service_configuration_application_configurations_unified_agent_configuration_filter_allow_list
				deny_list = var.unified_agent_configuration_service_configuration_application_configurations_unified_agent_configuration_filter_deny_list
				filter_type = var.unified_agent_configuration_service_configuration_application_configurations_unified_agent_configuration_filter_filter_type
				name = var.unified_agent_configuration_service_configuration_application_configurations_unified_agent_configuration_filter_name
			}
		}
		
		destination {

			#Optional
			log_object_id = oci_objectstorage_object.test_object.id
			operational_metrics_configuration {

				#Optional
				destination {

					#Optional
					compartment_id = var.compartment_id
				}
				source {

					#Optional
					metrics = var.unified_agent_configuration_service_configuration_destination_operational_metrics_configuration_source_metrics
					
					#Required
					record_input {

						#Optional
						namespace = var.unified_agent_configuration_service_configuration_destination_operational_metrics_configuration_source_record_input_namespace
						resource_group = var.unified_agent_configuration_service_configuration_destination_operational_metrics_configuration_source_record_input_resource_group
					}
					type = var.unified_agent_configuration_service_configuration_destination_operational_metrics_configuration_source_type
				}
			}
		}
		sources {
			#Required
			source_type = var.unified_agent_configuration_service_configuration_sources_source_type

			#Optional
			advanced_options {

				#Optional
				is_read_from_head = var.unified_agent_configuration_service_configuration_sources_advanced_options_is_read_from_head
			}
			channels = var.unified_agent_configuration_service_configuration_sources_channels
			custom_plugin = var.unified_agent_configuration_service_configuration_sources_custom_plugin
			name = var.unified_agent_configuration_service_configuration_sources_name
			parser {
				#Required
				parser_type = var.unified_agent_configuration_service_configuration_sources_parser_parser_type

				#Optional
				delimiter = var.unified_agent_configuration_service_configuration_sources_parser_delimiter
				expression = var.unified_agent_configuration_service_configuration_sources_parser_expression
				field_time_key = var.unified_agent_configuration_service_configuration_sources_parser_field_time_key
				format = var.unified_agent_configuration_service_configuration_sources_parser_format
				format_firstline = var.unified_agent_configuration_service_configuration_sources_parser_format_firstline
				grok_failure_key = var.unified_agent_configuration_service_configuration_sources_parser_grok_failure_key
				grok_name_key = var.unified_agent_configuration_service_configuration_sources_parser_grok_name_key
				is_estimate_current_event = var.unified_agent_configuration_service_configuration_sources_parser_is_estimate_current_event
				is_keep_time_key = var.unified_agent_configuration_service_configuration_sources_parser_is_keep_time_key
				is_merge_cri_fields = var.unified_agent_configuration_service_configuration_sources_parser_is_merge_cri_fields
				is_null_empty_string = var.unified_agent_configuration_service_configuration_sources_parser_is_null_empty_string
				is_support_colonless_ident = var.unified_agent_configuration_service_configuration_sources_parser_is_support_colonless_ident
				is_with_priority = var.unified_agent_configuration_service_configuration_sources_parser_is_with_priority
				keys = var.unified_agent_configuration_service_configuration_sources_parser_keys
				message_format = var.unified_agent_configuration_service_configuration_sources_parser_message_format
				message_key = var.unified_agent_configuration_service_configuration_sources_parser_message_key
				multi_line_start_regexp = var.unified_agent_configuration_service_configuration_sources_parser_multi_line_start_regexp
				nested_parser {

					#Optional
					parse_nested = var.unified_agent_configuration_service_configuration_sources_parser_nested_parser_parse_nested
					separator = var.unified_agent_configuration_service_configuration_sources_parser_nested_parser_separator
					time_format = var.unified_agent_configuration_service_configuration_sources_parser_nested_parser_time_format
					field_time_key = var.unified_agent_configuration_service_configuration_sources_parser_nested_parser_field_time_key
					is_keep_time_key = var.unified_agent_configuration_service_configuration_sources_parser_nested_parser_is_keep_time_key
				}
				null_value_pattern = var.unified_agent_configuration_service_configuration_sources_parser_null_value_pattern
				parse_nested = var.unified_agent_configuration_service_configuration_sources_parser_parse_nested
				patterns {

					#Optional
					field_time_format = var.unified_agent_configuration_service_configuration_sources_parser_patterns_field_time_format
					field_time_key = var.unified_agent_configuration_service_configuration_sources_parser_patterns_field_time_key
					field_time_zone = var.unified_agent_configuration_service_configuration_sources_parser_patterns_field_time_zone
					name = var.unified_agent_configuration_service_configuration_sources_parser_patterns_name
					pattern = var.unified_agent_configuration_service_configuration_sources_parser_patterns_pattern
				}
				record_input {

					#Optional
					dimensions = var.unified_agent_configuration_service_configuration_sources_parser_record_input_dimensions
					namespace = var.unified_agent_configuration_service_configuration_sources_parser_record_input_namespace
					resource_group = var.unified_agent_configuration_service_configuration_sources_parser_record_input_resource_group
				}
				rfc5424time_format = var.unified_agent_configuration_service_configuration_sources_parser_rfc5424time_format
				separator = var.unified_agent_configuration_service_configuration_sources_parser_separator
				syslog_parser_type = var.unified_agent_configuration_service_configuration_sources_parser_syslog_parser_type
				time_format = var.unified_agent_configuration_service_configuration_sources_parser_time_format
				time_type = var.unified_agent_configuration_service_configuration_sources_parser_time_type
				timeout_in_milliseconds = var.unified_agent_configuration_service_configuration_sources_parser_timeout_in_milliseconds
				types = var.unified_agent_configuration_service_configuration_sources_parser_types
			}
			paths = var.unified_agent_configuration_service_configuration_sources_paths
		}
		unified_agent_configuration_filter {
			#Required
			filter_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_filter_type

			#Optional
			allow_list {

				#Optional
				key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_allow_list_key
				pattern = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_allow_list_pattern
			}
			custom_filter_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_custom_filter_type
			custom_sections {

				#Optional
				name = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_custom_sections_name
				params = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_custom_sections_params
			}
			deny_list {

				#Optional
				key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_deny_list_key
				pattern = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_deny_list_pattern
			}
			emit_invalid_record_to_error = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_emit_invalid_record_to_error
			hash_value_field = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_hash_value_field
			inject_key_prefix = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_inject_key_prefix
			is_auto_typecast_enabled = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_is_auto_typecast_enabled
			is_renew_record_enabled = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_is_renew_record_enabled
			is_ruby_enabled = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_is_ruby_enabled
			keep_keys = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_keep_keys
			key_name = oci_kms_key.test_key.name
			name = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_name
			params = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_params
			parser {
				#Required
				parser_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_parser_type

				#Optional
				delimiter = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_delimiter
				expression = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_expression
				field_time_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_field_time_key
				format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_format
				format_firstline = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_format_firstline
				grok_failure_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_grok_failure_key
				grok_name_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_grok_name_key
				is_estimate_current_event = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_estimate_current_event
				is_keep_time_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_keep_time_key
				is_merge_cri_fields = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_merge_cri_fields
				is_null_empty_string = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_null_empty_string
				is_support_colonless_ident = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_support_colonless_ident
				is_with_priority = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_is_with_priority
				keys = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_keys
				message_format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_message_format
				message_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_message_key
				multi_line_start_regexp = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_multi_line_start_regexp
				nested_parser {

					#Optional
					parse_nested = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_nested_parser_parse_nested
					separator = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_nested_parser_separator
					time_format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_nested_parser_time_format
					time_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_nested_parser_time_type
				}
				null_value_pattern = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_null_value_pattern
				parse_nested = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_parse_nested
				patterns {

					#Optional
					field_time_format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_patterns_field_time_format
					field_time_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_patterns_field_time_key
					field_time_zone = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_patterns_field_time_zone
					name = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_patterns_name
					pattern = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_patterns_pattern
				}
				record_input {

					#Optional
					dimensions = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_record_input_dimensions
					namespace = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_record_input_namespace
					resource_group = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_record_input_resource_group
				}
				rfc5424time_format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_rfc5424time_format
				separator = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_separator
				syslog_parser_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_syslog_parser_type
				time_format = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_time_format
				time_type = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_time_type
				timeout_in_milliseconds = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_timeout_in_milliseconds
				types = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_parser_types
			}
			record_list {

				#Optional
				key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_record_list_key
				value = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_record_list_value
			}
			remove_key_name_field = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_remove_key_name_field
			remove_keys = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_remove_keys
			renew_time_key = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_renew_time_key
			replace_invalid_sequence = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_replace_invalid_sequence
			reserve_data = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_reserve_data
			reserve_time = var.unified_agent_configuration_service_configuration_unified_agent_configuration_filter_reserve_time
		}
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
	group_association {

		#Optional
		group_list = var.unified_agent_configuration_group_association_group_list
	}
}

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

Import

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

$ terraform import oci_logging_unified_agent_configuration.test_unified_agent_configuration "id"