Claude Compliance with Cribl Stream
The compliance endpoints and API key setup the page documents.
Cribl Stream ships a dedicated source for Anthropic compliance data: the Claude Compliance Source. This post follows the Claude Compliance Source page in the Cribl Stream docs, covering what the source collects, the setup fields and endpoints it exposes, and the caveats the docs flag.
What the source collects
Per the docs, the source collects enterprise observability and compliance data from Anthropic's Claude Compliance API. It is intended for organizations using Claude Enterprise that feed Claude Platform activity into eDiscovery, data loss prevention (DLP), or SIEM tools, or that process that data in Cribl Stream before delivery to downstream systems. For usage and cost reports rather than Compliance API activity, use the Claude Enterprise Analytics Source.
The page describes it as a pull-type source with TLS support and event breaker support. TLS is enabled via HTTPS on the underlying Claude Compliance REST APIs, and event breaking is applied automatically using the Anthropic Compliance Ruleset; it is not user-configurable.
The source organizes the Claude Compliance API into collection tiers. Tier 1 endpoints are list endpoints with no required path parameters, called directly on each collection run and enabled or disabled individually in the Endpoints sidebar. Tier 2 endpoints require IDs discovered from Tier 1 responses, and the source fetches them automatically as part of the same collection job when the parent Tier 1 endpoint is enabled. Tier 1 data fetched for that purpose is used for ID discovery only and does not generate events: when Chat Messages collection is active, the source discovers chat IDs from Chats and fetches messages for each chat, so only message events are generated, not chat events.
When a collection job runs, the source performs the steps below, as documented on the page:
- It calls each enabled Tier 1 endpoint with your API key.
- It pages through results using cursor-based or page-based pagination until all available records are retrieved.
- For endpoints with associated Tier 2 detail endpoints, it discovers item IDs from Tier 1 responses and fetches per-item details automatically.
- It ingests each record as an event in Cribl Stream.
- It tracks state so repeated polls avoid large gaps or unnecessary duplication.
After collection, you can route, filter, enrich, and format events for your downstream Destinations, such as SIEM, observability, storage, or ticketing tools.
Setting up the source
Before you configure the source, the page lists four prerequisites: a Cribl Stream deployment (Cloud or self-hosted); a Claude Enterprise organization with the Compliance API enabled; a Claude Compliance access key with the scopes required for the endpoint types you plan to collect; and network connectivity from Cribl Workers to Anthropic's compliance API hosts over HTTPS, direct or via an HTTP/S proxy. An Admin API key can substitute for a Compliance Access Key, but grants access to the Activity Feed only.
On the top bar, select Products, then Cribl Stream; under Worker Groups, select a Worker Group. Configure via QuickConnect, by navigating to Routing, then QuickConnect, selecting Add Source, and choosing Select Existing or Add New, or via Routes, by selecting Data, then Sources, choosing the source, and selecting Add Source.
In the Source modal, the General Settings fields the page documents are:
Input ID: A unique name for this source. If you clone it, Cribl Stream appends-CLONEto the original Input ID.Description: Optionally, describe the event types or downstream SIEM this instance feeds.API key (text secret): Select or create a stored text secret for your Claude Compliance API key.Tags: Optional UI tags to group this source in Stream; they are not added to events.
Under Endpoints, select each endpoint from the sidebar to configure its collection settings; by default, only the Activities endpoint is enabled, with state tracking on. All endpoints support an Enabled toggle, a Cron schedule (Activities defaults to */5 * * * *; all others to 0 7 * * *), and a Job timeout (0 is unlimited; default 300). Time-filtered endpoints (Activities, Chats, Chat Messages, Projects, Project Details) additionally include Earliest (default -7d@d), Latest (default now), and State tracking, which when enabled configures the State update and merge expressions.
The Earliest and Latest fields accept the syntax shown in the time syntax section of the Cribl Stream docs page:
[+|-]<time_integer><time_unit>@<snap-to_time_unit>
The offset is - for the past or + for the future, or omitted with now. Earliest must not be later than Latest, and @ rounds down from the evaluated time: +128m@h moves forward 128 minutes, then snaps back to the hour boundary.
The page documents 5 directly collectible Tier 1 endpoints and 4 Tier 2 detail endpoints (chat messages, project details, organization users, organization roles), all nine appearing in the Endpoints sidebar. The Tier 1 endpoints are:
GET /v1/compliance/activities: compliance activity audit trail across your Claude Enterprise organization. Cursor pagination,created_attime filter field, page limit 100; the source sendsorder=ascon each request.GET /v1/compliance/apps/chats: chat metadata for claude.ai organizations, enabling Tier 2 message collection. Cursor pagination,updated_attime filter field, page limit 100; the source sendsorder_by=updated_aton each request.GET /v1/compliance/apps/projects: project listing for claude.ai organizations. Token pagination,updated_attime filter field, page limit 100.GET /v1/compliance/groups: RBAC and SCIM-provisioned compliance groups with group IDs and membership. Token pagination, no time filter field, page limit 1000.GET /v1/compliance/organizations: linked organizations under your parent organization. Token pagination, no time filter field, page limit 1000.
Optionally, the page lists Processing Settings, Retries, and Advanced Settings. Processing Settings lets you define or modify fields with JavaScript expressions similar to the Eval function, and select a single existing Pipeline or Pack to process data from this input before it is sent through the Routes. Retries cover failed HTTP requests: the retry type defaults to Backoff, the initial retry interval maxes at 20,000 ms, the retry limit defaults to 5 (max 20), the backoff multiplier defaults to 2, and the retry HTTP codes default to 429 and 503. Advanced settings include the request timeout in seconds (default 300; 0 waits indefinitely) and a time to live of 4h for Collector job artifacts on disk and in Job Inspector. Under Connected Destinations, choose Send to Routes and/or QuickConnect, then click Save and Commit & Deploy.
What the docs flag
The first caveat is API volume: several endpoints, especially activities and chats, can return large volumes of paginated records, and Tier 2 endpoints multiply request volume further since the source issues one request per discovered ID. If Anthropic returns rate-limit responses such as HTTP 429, the page says to rely on the Retry settings and a less aggressive schedule, and to watch job logs and Anthropic's documented quotas for your organization tier.
State tracking helps prevent overlaps between jobs, where subsequent runs may return some of the same results, and gaps, by allowing a run to pick up from where the last run ended. Defaults are preconfigured per endpoint to match each endpoint's timestamp field. For the Chats endpoint, the state update expression in the state tracking section of the Cribl Stream docs page is:
updated_at && updated_at > (state.latestCreatedAt || '') ? {latestCreatedAt: updated_at} : state
It checks whether updated_at is present and newer than the stored state.latestCreatedAt, updating the state to the new value or keeping the existing state otherwise. The corresponding state merge expression, from the same state tracking section:
(prevState.latestCreatedAt || '') >= (newState.latestCreatedAt || '') ? prevState : newState
It compares prevState to newState and keeps whichever has the greater timestamp value. State values must resolve to an object, and if an expression does not resolve to an object, Cribl Stream ignores the result. The field names used in state expressions vary per endpoint and match the endpoint's time filter field, so if you modify an endpoint's time filter behavior, update the state expressions accordingly. Select Manage State to view, modify, or delete a state.
On errors, non-2xx HTTP responses from the configured endpoints are generally treated as errors, with exceptions that may apply when only some subtasks fail or when the HTTP client follows redirects (3xx) according to library behavior. If authentication fails, verify the compliance access key, header names, and any organization identifiers against Anthropic's current Compliance API documentation. Use Live Data and Start Capture on the Source modal to preview events, the Logs tab for request errors, auth failures, and download issues, and the Monitoring page to correlate drops in events or bytes with schedule or API errors.
Frequently asked questions
What does the Claude Compliance Source in Cribl Stream collect?
It collects enterprise observability and compliance data from Anthropic's Claude Compliance API. It is intended for organizations using Claude Enterprise that feed Claude Platform activity into eDiscovery, data loss prevention, or SIEM tools. Stream then routes, filters, enriches, and formats the events before delivery to downstream destinations.
How does the Claude Compliance Source in Cribl Stream authenticate?
It uses a stored text secret holding your Claude Compliance API key, which needs the scopes required for the endpoint types you plan to collect. An Admin API key can substitute for a Compliance Access Key, but grants access to the Activity Feed only.
Which API endpoints does the Claude Compliance Source in Cribl Stream support?
The page documents 5 directly collectible Tier 1 endpoints and 4 Tier 2 detail endpoints, with all nine appearing in the Endpoints sidebar. Tier 2 endpoints require IDs discovered from Tier 1 responses, and the source fetches them automatically as part of the same collection job when the parent Tier 1 endpoint is enabled.
How does the Claude Compliance Source in Cribl Stream avoid overlaps and gaps between collection runs?
It tracks state so repeated polls avoid large gaps or unnecessary duplication. Default state update and state merge expressions are preconfigured per endpoint to match each endpoint's timestamp field, and a state expression that does not resolve to an object is ignored by Cribl Stream.
Source
Verified against Cribl Stream 4.20 documentation on November 09, 2026.