diff --git a/pages/audit-trail/index.mdx b/pages/audit-trail/index.mdx index 801677a263..75d2d5202b 100644 --- a/pages/audit-trail/index.mdx +++ b/pages/audit-trail/index.mdx @@ -45,6 +45,15 @@ meta: /> +## Tutorials + + + + ``` -## 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: organization_id: region: - + processors: batch: send_batch_max_size: 1000 send_batch_size: 100 timeout: 10s - + exporters: datadog: idle_conn_timeout: 10s api: key: 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 scwaudittrail@v0.1.0/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 scwaudittrail@v0.1.0/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. + \ No newline at end of file