Skip to content

Commit 5edc2ae

Browse files
tkellclaude
andcommitted
[anthropic_compliance_logs] Add new integration tile
Adds a new sibling tile to anthropic_usage_and_costs for collecting audit activity events from the Anthropic Compliance API (GET /v1/compliance/activities). Crawler implementation lives in DataDog/crawler-sdk under clients/anthropic_compliance_logs. Assets: - Log pipeline + tests for source:anthropic service:anthropic.compliance (flattens actor, GeoIP + UA enrichment, remaps type to evt.name) - Overview dashboard with auth/admin/API-key lifecycle widgets - Ingestion-stopped log alert monitor - Five Log Explorer saved views (all, auth, API key, admin, org membership) - CODEOWNERS entry under SaaS Integrations Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b11284 commit 5edc2ae

15 files changed

Lines changed: 1326 additions & 0 deletions

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ datadog_checks_base/datadog_checks/base/checks/windows/ @DataDog/wi
243243
/adyen/manifest.json @DataDog/saas-integrations @DataDog/documentation
244244
/adyen/assets/logs/ @DataDog/saas-integrations @DataDog/documentation @DataDog/logs-integrations-reviewers
245245

246+
/anthropic_compliance_logs/ @DataDog/saas-integrations
247+
/anthropic_compliance_logs/*.md @DataDog/saas-integrations @DataDog/documentation
248+
/anthropic_compliance_logs/manifest.json @DataDog/saas-integrations @DataDog/documentation
249+
/anthropic_compliance_logs/assets/logs/ @DataDog/saas-integrations @DataDog/documentation @DataDog/logs-integrations-reviewers
250+
246251
/authorize_net/ @DataDog/saas-integrations
247252
/authorize_net/*.md @DataDog/saas-integrations @DataDog/documentation
248253
/authorize_net/manifest.json @DataDog/saas-integrations @DataDog/documentation
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CHANGELOG - Anthropic Compliance Logs
2+
3+
## 1.0.0 / 2026-05-11
4+
5+
***Added***:
6+
7+
* Initial Release
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Anthropic Compliance Logs
2+
3+
## Overview
4+
5+
Datadog's Anthropic Compliance Logs integration ingests audit activity events from Anthropic's [Compliance API][1]. With this integration, security and compliance teams can:
6+
7+
- **Monitor SSO sign-ins and authentication events** across your organization
8+
- **Track API key lifecycle** (creation, deletion, scope updates) for Admin, Platform, and Scoped API keys
9+
- **Audit Anthropic Console activity** including member invites, role changes, and workspace updates
10+
- **Investigate Claude usage** at the audit level (chat views, project access, file operations)
11+
- **Detect security-sensitive events** with the included Cloud SIEM detection rules
12+
13+
The Compliance API is available to Anthropic Enterprise plan customers with the Compliance API enabled in their organization settings.
14+
15+
## Setup
16+
17+
### Prerequisites
18+
19+
- An Anthropic **Enterprise plan** subscription
20+
- **Compliance API enabled** in Anthropic Organization settings under **Data and privacy**
21+
- An **Admin API key** (prefix `sk-ant-admin01-`) with the `read:compliance_activities` scope, or a dedicated **Compliance Access key** (prefix `sk-ant-api01-`)
22+
23+
### 1. Enable the Compliance API in Anthropic
24+
25+
1. Log in to the Anthropic Console as a Primary Owner.
26+
2. Navigate to **Organization settings -> Data and privacy**.
27+
3. Find the **Compliance API** section and click **Enable**.
28+
29+
### 2. Generate or locate an Admin API key
30+
31+
1. Navigate to **Organization settings -> API keys**.
32+
2. Generate a new Admin API key, or use the existing key already configured for the [Anthropic Usage and Costs][2] integration (the same key is reused).
33+
3. Copy the key to a secure location.
34+
35+
### 3. Configure the Datadog integration
36+
37+
1. In Datadog, go to [**Integrations -> Anthropic Compliance Logs**](https://app.datadoghq.com/integrations?integrationId=anthropic-compliance-logs).
38+
2. In the configuration panel, paste your **Admin API Key**.
39+
3. Toggle **Enable Compliance Logs** to ON.
40+
4. Click **Save Configuration**.
41+
42+
### 4. Validate
43+
44+
1. Wait up to 5 minutes for the first crawl.
45+
2. Open [Log Explorer][3] and filter on `source:anthropic service:anthropic.compliance`.
46+
3. Confirm events appear with `evt.name` values such as `claude_chat_viewed`, `admin_api_key_created`, or `user_signed_in_sso`.
47+
48+
## Data Collected
49+
50+
### Logs
51+
52+
The integration collects audit activity events from `GET /v1/compliance/activities`. Each event includes:
53+
54+
- A timestamp (`created_at`) with microsecond precision
55+
- An actor (user, API key, SCIM, or system) with email, user ID, IP address, and User-Agent when applicable
56+
- An activity `type` such as `user_signed_in_sso`, `admin_api_key_created`, `org_user_invite_accepted`, or `claude_chat_viewed` (150+ activity types across 35+ categories)
57+
- Organization and workspace context
58+
59+
Logs are tagged `source:anthropic service:anthropic.compliance` and processed by a Datadog log pipeline that flattens the actor object into standard `usr.*` and `network.client.*` attributes and enriches the source IP with GeoIP and the User-Agent string.
60+
61+
### Metrics
62+
63+
Anthropic Compliance Logs does not include any metrics.
64+
65+
### Service Checks
66+
67+
Anthropic Compliance Logs does not include any service checks.
68+
69+
### Events
70+
71+
Anthropic Compliance Logs does not include any events.
72+
73+
## Troubleshooting
74+
75+
- **No logs after 10 minutes**: Verify the Compliance API is enabled in Anthropic Organization settings under Data and privacy.
76+
- **HTTP 403**: Confirm the Compliance API is enabled and that the Admin API key has the `read:compliance_activities` scope.
77+
- **Enterprise gate**: The Compliance API is only available on the Enterprise plan.
78+
79+
Need help? Contact [Datadog support][4].
80+
81+
[1]: https://docs.anthropic.com/en/api/administration-api
82+
[2]: https://app.datadoghq.com/integrations?integrationId=anthropic-usage-and-costs
83+
[3]: https://app.datadoghq.com/logs?query=source%3Aanthropic+service%3Aanthropic.compliance
84+
[4]: https://docs.datadoghq.com/help/

0 commit comments

Comments
 (0)