hcp_log_streaming_destination (Resource)

The Streaming Destination resource allows users to configure an external log system to stream HCP logs to.

Example Usage: CloudWatch

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"
  }
}

Example Usage: DataDog

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"
  }
}

Example Usage: SplunkCloud

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"
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for cloudwatch

Required:

Optional:

Nested Schema for datadog

Required:

Optional:

Nested Schema for splunk_cloud

Required: