Skip to content

Commit c5973ad

Browse files
nerda-codesLaure-di
authored andcommitted
docs(adt): add tuto to index page (scaleway#4394)
1 parent 17c1b90 commit c5973ad

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

pages/audit-trail/index.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ meta:
4545
/>
4646
</Grid>
4747

48+
## Tutorials
49+
50+
<Grid>
51+
<DefaultCard
52+
title="Exporting Audit Trail events to DataDog"
53+
url="/tutorials/export-audit-trail-to-datadog/"
54+
label="Read more"
55+
/>
56+
4857
<ClickableBanner
4958
productLogo="cli"
5059
title="Audit Trail API"
246 KB
Loading

tutorials/export-audit-trail-to-datadog/index.mdx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ This tutorial shows you how to export your Audit Trail events to [DataDog](https
4040
name: otelcol-audit-trail
4141
description: OpenTelemetry Collector for Audit Trail
4242
output_path: ./otelcol-audit-trail
43-
43+
4444
exporters:
4545
- gomod:
4646
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter v0.118.0
47-
47+
4848
processors:
4949
- gomod:
5050
go.opentelemetry.io/collector/processor/batchprocessor v0.118.0
51-
51+
5252
receivers:
5353
- gomod:
5454
github.com/scaleway/opentelemetry-collector-scaleway/receiver/scwaudittrail v0.1.0
55-
55+
5656
providers:
5757
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.24.0
5858
- 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-
8383
ssh root@<INSTANCE_IP_ADDRESS>
8484
```
8585
86-
## Configure the Collector
86+
## Configuring the Collector
8787
88-
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.
88+
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.
8989
9090
```yaml
9191
receivers:
@@ -94,20 +94,20 @@ Create a file named `/etc/opentelemetry-collector/config.yaml` and paste the fol
9494
secret_key: <SCW_SECRET_KEY>
9595
organization_id: <SCW_DEFAULT_ORGANIZATION_ID>
9696
region: <SCW_DEFAULT_REGION>
97-
97+
9898
processors:
9999
batch:
100100
send_batch_max_size: 1000
101101
send_batch_size: 100
102102
timeout: 10s
103-
103+
104104
exporters:
105105
datadog:
106106
idle_conn_timeout: 10s
107107
api:
108108
key: <DD_API_KEY>
109109
site: <DD_SITE>
110-
110+
111111
service:
112112
pipelines:
113113
logs:
@@ -133,11 +133,11 @@ Make sure that you replace:
133133
[Unit]
134134
Description=OpenTelemetry Collector
135135
After=multi-user.target
136-
136+
137137
[Service]
138138
ExecStart=/usr/local/bin/otelcol-audit-trail --config /etc/opentelemetry-collector/config.yaml
139139
Type=simple
140-
140+
141141
[Install]
142142
WantedBy=multi-user.target
143143
```
@@ -167,8 +167,10 @@ Make sure that you replace:
167167
journalctl -fu opentelemetry-collector.service
168168
```
169169

170-
An output similar to the following should display to confirm that the Collector is polling Audit Trail events:
170+
An output similar to the following should display to confirm that the Collector is polling Audit Trail events:
171171

172-
```
173-
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"}
174-
```
172+
```
173+
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"}
174+
```
175+
6. Optionally, log in to your Datadog account and click **Logs** in the left hand side menu. Your logs should display.
176+
<Lightbox src="scaleway-adt-logs-datadog.webp" alt="Scaleway Secret Manager logs from the display on the Datadog interface" />

0 commit comments

Comments
 (0)