The Streaming Destination resource allows users to configure an external log system to stream HCP logs to.
resource "hcp_log_streaming_destination" "example_cloudwatch" {
name = "example_cloudwatch"
cloudwatch = {
external_id = "an-external-id"
region = "us-east-1"
role_arn = "arn:aws:iam::111111111:role/hcp-log-streaming"
log_group_name = "a-log-group-name"
}
}
resource "hcp_log_streaming_destination" "example_datadog" {
name = "example_datadog"
datadog = {
endpoint = "https://datadog-api.com"
api_key = "API_KEY_VALUE_HERE"
application_key = "APPLICATION_VALUE_HERE"
}
}
resource "hcp_log_streaming_destination" "example_splunk_cloud" {
name = "example_splunk_cloud"
splunk_cloud = {
endpoint = "https://http-inputs-tenant.splunkcloud.com:443/services/collector/event"
token = "someSuperSecretToken"
}
}
name
(String) The HCP Log Streaming Destination’s name.cloudwatch
(Attributes) (see below for nested schema)datadog
(Attributes) (see below for nested schema)splunk_cloud
(Attributes) (see below for nested schema)streaming_destination_id
(String) The ID of the HCP Log Streaming Destinationcloudwatch
Required:
external_id
(String, Sensitive) The external_id to provide when assuming the aws IAM role.region
(String) The region the CloudWatch destination is set up to stream to.role_arn
(String) The role_arn that will be assumed to stream logs.Optional:
log_group_name
(String) The log_group_name of the CloudWatch destination.datadog
Required:
api_key
(String, Sensitive) The value for the DD-API-KEY to send when making requests to DataDog.endpoint
(String) The Datadog endpoint to send logs to.Optional:
application_key
(String, Sensitive) The value for the DD-APPLICATION-KEY to send when making requests to DataDog.splunk_cloud
Required:
endpoint
(String) The Splunk Cloud endpoint to send logs to.token
(String, Sensitive) The authentication token that will be used by the platform to access Splunk Cloud.