Skip to content

Commit 1b8d6f5

Browse files
author
Krishna Agarwal
committed
SUMO-182757: Terraform support for http otlp source
1 parent 6564128 commit 1b8d6f5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

website/docs/r/http_source.html.markdown

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: |-
66
---
77

88
# sumologic_http_source
9-
Provides a [Sumologic HTTP source][1], [Sumologic HTTP Traces source][2] and [Sumologic Kinesis Log source][3]. To start using Traces contact your Sumo account representative to activate.
9+
Provides a [Sumologic HTTP source][1], [Sumologic HTTP Traces source][2], [Sumologic Kinesis Log source][3] and [Sumologic HTTP_OTLP_source][4]. To start using Traces contact your Sumo account representative to activate.
1010

1111
__IMPORTANT:__ The endpoint is stored in plain-text in the state. This is a potential security issue.
1212

@@ -40,6 +40,14 @@ resource "sumologic_http_source" "kinesisLog" {
4040
collector_id = "${sumologic_collector.test.id}"
4141
}
4242
43+
resource "sumologic_http_source" "http_otlp_source" {
44+
name = "HTTP OTLP"
45+
description = "My description"
46+
category = "my/source/category"
47+
content_type = "Otlp"
48+
collector_id = "${sumologic_collector.test.id}"
49+
}
50+
4351
resource "sumologic_collector" "collector" {
4452
name = "my-collector"
4553
description = "Just testing this"
@@ -51,7 +59,7 @@ resource "sumologic_collector" "collector" {
5159
In addition to the [Common Source Properties](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#common-source-properties), the following arguments are supported:
5260

5361
- `message_per_request` - (Optional) When set to `true`, will create one log message per HTTP request.
54-
- `content_type` - (Optional) When configuring a HTTP Traces Source, set this property to `Zipkin`. When configuring a Kinesis Logs Source, set this property to `KinesisLog`. This should only be used when creating a Traces or Kinesis Log source.
62+
- `content_type` - (Optional) When configuring a HTTP Traces Source, set this property to `Zipkin`. When configuring a Kinesis Logs Source, set this property to `KinesisLog`. When configuring a HTTP OTLP Source, set this property to `Otlp`. This should only be used when creating a Traces, Kinesis Log or HTTP OTLP source.
5563

5664
### See also
5765
* [Common Source Properties](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#common-source-properties)
@@ -78,3 +86,4 @@ terraform import sumologic_http_source.test my-test-collector/my-test-source
7886
[1]: https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/HTTP_Source
7987
[2]: https://help.sumologic.com/Traces/HTTP_Traces_Source
8088
[3]: https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/Amazon-Web-Services/AWS_Kinesis_Firehose_for_Logs_Source
89+
[4]: https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/OTLP_HTTP_Source

0 commit comments

Comments
 (0)