-
Notifications
You must be signed in to change notification settings - Fork 258
docs(adt): add tuto to index page #4394
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+246 KB
tutorials/export-audit-trail-to-datadog/assets/scaleway-adt-logs-datadog.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,19 +40,19 @@ This tutorial shows you how to export your Audit Trail events to [DataDog](https | |
| name: otelcol-audit-trail | ||
| description: OpenTelemetry Collector for Audit Trail | ||
| output_path: ./otelcol-audit-trail | ||
|
|
||
| exporters: | ||
| - gomod: | ||
| github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter v0.118.0 | ||
|
|
||
| processors: | ||
| - gomod: | ||
| go.opentelemetry.io/collector/processor/batchprocessor v0.118.0 | ||
|
|
||
| receivers: | ||
| - gomod: | ||
| github.com/scaleway/opentelemetry-collector-scaleway/receiver/scwaudittrail v0.1.0 | ||
|
|
||
| providers: | ||
| - gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.24.0 | ||
| - gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.24.0 | ||
|
|
@@ -83,9 +83,9 @@ You now have a new folder named `otelcol-audit-trail/` with the binary `otelcol- | |
| ssh root@<INSTANCE_IP_ADDRESS> | ||
| ``` | ||
|
|
||
| ## Configure the Collector | ||
| ## Configuring the Collector | ||
|
|
||
| Create a file named `/etc/opentelemetry-collector/config.yaml` and paste the following content into it. This file is the configuration our custom Collector will run. | ||
| Create a file named `/etc/opentelemetry-collector/config.yaml` and paste the following content into it. This file is the configuration our custom Collector will run. | ||
|
|
||
| ```yaml | ||
| receivers: | ||
|
|
@@ -94,20 +94,20 @@ Create a file named `/etc/opentelemetry-collector/config.yaml` and paste the fol | |
| secret_key: <SCW_SECRET_KEY> | ||
| organization_id: <SCW_DEFAULT_ORGANIZATION_ID> | ||
| region: <SCW_DEFAULT_REGION> | ||
|
|
||
| processors: | ||
| batch: | ||
| send_batch_max_size: 1000 | ||
| send_batch_size: 100 | ||
| timeout: 10s | ||
|
|
||
| exporters: | ||
| datadog: | ||
| idle_conn_timeout: 10s | ||
| api: | ||
| key: <DD_API_KEY> | ||
| site: <DD_SITE> | ||
|
|
||
| service: | ||
| pipelines: | ||
| logs: | ||
|
|
@@ -133,11 +133,11 @@ Make sure that you replace: | |
| [Unit] | ||
| Description=OpenTelemetry Collector | ||
| After=multi-user.target | ||
|
|
||
| [Service] | ||
| ExecStart=/usr/local/bin/otelcol-audit-trail --config /etc/opentelemetry-collector/config.yaml | ||
| Type=simple | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
| ``` | ||
|
|
@@ -167,8 +167,10 @@ Make sure that you replace: | |
| journalctl -fu opentelemetry-collector.service | ||
| ``` | ||
|
|
||
| An output similar to the following should display to confirm that the Collector is polling Audit Trail events: | ||
| An output similar to the following should display to confirm that the Collector is polling Audit Trail events: | ||
|
|
||
| ``` | ||
| Feb 07 15:34:30 scw-beautiful-zhukovsky otelcol-audit-trail[1723]: 2025-02-07T15:34:30.687Z info [email protected]/receiver.go:80 Polling Audit Trail logs {"kind": "receiver", "name": "scwaudittrail", "data_type": "logs"} | ||
| ``` | ||
| ``` | ||
| Feb 07 15:34:30 scw-beautiful-zhukovsky otelcol-audit-trail[1723]: 2025-02-07T15:34:30.687Z info [email protected]/receiver.go:80 Polling Audit Trail logs {"kind": "receiver", "name": "scwaudittrail", "data_type": "logs"} | ||
| ``` | ||
| 6. Optionally, log in to your Datadog account and click **Logs** in the left hand side menu. Your logs should display. | ||
| <Lightbox src="scaleway-adt-logs-datadog.webp" alt="Scaleway Secret Manager logs from the display on the Datadog interface" /> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.