-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[DOCS-11765] Add OP Splunk HEC Distribution of OTel and DDOT #32704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
d150620
d132577
071770e
2ce1fc0
f85fc26
4fc82d9
8c9b4f1
721f229
1cef010
1f034b4
f9279b5
12180fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,10 @@ disable_toc: false | |
|
|
||
| Use Observability Pipelines' OpenTelemetry (OTel) source to collect logs from your OTel Collector through HTTP or gRPC. Select and set up this source when you set up a pipeline. The information below is configured in the pipelines UI. | ||
|
|
||
| **Notes**: | ||
| - If you are using the Datadog Distribution of OpenTelemetry Collector (DDOT), [use the OpenTelemetry source to send logs to Observability Pipelines](#send-logs-from-the-datadog-distribution-of-opentelemetry-collector-to-observability-pipelines). | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - If you are using the Splunk HEC Distribution of the OpenTelemetry Collector, use the [Splunk HEC source][4] to send logs to Observability pipelines. | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### When to use this source | ||
|
|
||
| Common scenarios when you might use this source: | ||
|
|
@@ -73,6 +77,41 @@ Based on these example configurations, these are values you enter for the follow | |
| - HTTP listener address: `worker:4317` | ||
| - gRPC listener address: `worker:4318` | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Send logs from the Datadog Distribution of OpenTelemetry Collector to Observability Pipelines | ||
|
|
||
| To send logs from the Datadog Distribution of the OpenTelemetry Collector (DDOT): | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 1. Deploy the DDOT Collector using helm. See [Install the DDOT Collector as a Kubernetes DaemonSet][5] for instructions. | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 1. [Set up a pipeline][6] on Observability Pipelines using the [OpenTelemetry source](#set-up-the-source-in-the-pipeline-ui). | ||
| 1. (Optional) Datadog recommends adding an [Edit Fields processor][7] to the pipeline that appends the field `op_otel_ddot:true`. | ||
| 1. When you install the Worker, for the OpenTelemetry source environment variables: | ||
| 1. Set your HTTP listener to `0.0.0.0:4318`. | ||
ckelner marked this conversation as resolved.
Show resolved
Hide resolved
rtrieu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 1. Set your gRPC listener to `0.0.0.0:4317`. | ||
| 1. After you installed the Worker and deployed the pipeline, update the OpenTelemetry Collector's `collector-config.yaml` to include an exporter that sends logs to Observability Pipelines. For example: | ||
|
||
| ``` | ||
| exporters: | ||
ckelner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| otlphttp: | ||
| endpoint: http://opw-observability-pipelines-worker.default.svc.cluster.local:4318 | ||
| ... | ||
| service: pipelines: logs: exporters: [otlphttp] | ||
|
||
| ``` | ||
| 1. Redeploy the Datadog Agent with the updated `collector-config.yaml`.For example, if the Agent is installed in Kubernetes: | ||
| ``` | ||
| helm upgrade --install datadog-agent datadog/datadog \ | ||
| --values ./agent.yaml \ | ||
| --set-file datadog.otelCollector.config=./collector-config.yaml | ||
| ``` | ||
|
|
||
ckelner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| **Notes**: | ||
| - Since DDOT is sending logs to Observability Pipelines, and not the Datadog Agent, the following settings do not work for sending logs from DDOT to Observability Pipelines: | ||
maycmlee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - `DD_OBSERVABILITY_PIPELINES_WORKER_LOGS_ENABLED` | ||
| - `DD_OBSERVABILITY_PIPELINES_WORKER_LOGS_URL` | ||
| - Logs sent from DDOT might have nested objects that prevent Datadog from parsing the logs correctly. To resolve this, Datadog recommends using the [Custom Processor][8] to flatten the nested `resource` object. | ||
|
|
||
| [1]: https://opentelemetry.io/docs/collector/ | ||
| [2]: /observability_pipelines/sources/ | ||
| [3]: /observability_pipelines/configuration/install_the_worker/advanced_worker_configurations/#bootstrap-options | ||
| [3]: /observability_pipelines/configuration/install_the_worker/advanced_worker_configurations/#bootstrap-options | ||
| [4]: /observability_pipelines/sources/splunk_hec/#send-logs-from-the-splunk-distributor-of-the-opentelemetry-collector-to-observability-pipelines | ||
| [5]: /opentelemetry/setup/ddot_collector/install/kubernetes_daemonset/?tab=datadogoperator | ||
| [6]: /observability_pipelines/configuration/set_up_pipelines/ | ||
| [7]: /observability_pipelines/processors/edit_fields#add-field | ||
| [8]: /observability_pipelines/processors/custom_processor | ||
Uh oh!
There was an error while loading. Please reload this page.