# Stream a workspace's Activity to your SIEM

How the owner and admins of an Enterprise workspace send its Activity to Splunk, Datadog, Elastic, Sumo Logic or any webhook, or let their SIEM fetch it with a pull API key, and how their security team checks nothing was dropped or changed.

**Streaming** sends every line of a shared workspace's [Activity](https://support.bluedeer.ai/team-and-enterprise/analytics-and-activity/workspace-activity.md) to your organization's security tools (a SIEM, such as Splunk, Microsoft Sentinel or Elastic Security) as it happens, so your security team can search it, keep it with the rest of your logs, and alert on it. Bluedeer sends each line within about a minute, in order, and catches up by itself after your SIEM was down: nothing is lost, because Bluedeer keeps the Activity log and remembers where each destination got to.

Streaming is part of [Bluedeer Enterprise](https://support.bluedeer.ai/team-and-enterprise/plan-overviews/what-is-enterprise.md), like Activity itself. Only the owner and admins see it; members don't. An admin needs a seat to change anything here.

## Where to find it

On the web, open the **Workspace** page in the sidebar, select **Activity**, then **Streaming** (next to **Activity log** and **Exports**). Streaming is set up on the web only; the phone doesn't show it yet.

## Two ways to get Activity into your SIEM

- **A destination:** Bluedeer sends the Activity to an address of your SIEM. Choose this when your SIEM can receive events over HTTPS from the internet.
- **A pull API key:** your SIEM fetches the Activity from Bluedeer itself, page by page. Choose this when your SIEM is on a private network that the internet can't reach, or when you prefer a poller, such as Elastic Agent's Custom API input or a Microsoft Sentinel codeless connector.

You can use both, and several of each.

## Add a destination

1. Select **Add a destination** (or, when there is none yet, the kind you want).
2. Choose where the Activity goes: **Splunk**, **Microsoft Sentinel**, **Datadog**, **Elastic**, **Sumo Logic**, or **Webhook** for any other HTTPS receiver (Google Security Operations, IBM QRadar's HTTP receiver, Cribl or your own collector).
3. Fill in what that kind needs. Each field says what it is and gives an example.
4. Choose the **format**, where the kind offers a choice. The recommended one is first; pick another only if your tools expect it.
5. Choose where it **starts from**: from now, the last 30 days, the last year, or **All history**, every line since the workspace began. Older lines are sent first, oldest first, then what's new. A long history takes a while to arrive.
6. Optionally, choose **what it sends** (only some categories, such as Security and Members), and whether to **leave out the names of files, projects and chats**.
7. Select **Send a test event**. Test sends one test event to the address before you save it, and tells you in plain words how your SIEM answered. Nothing is set up until you save, and nobody is told about a test. A webhook test gives you the signing key it used: keep it, and it stays the key when you save.
8. When the test passes, select **Set up**. If you need to save before your SIEM accepts events (for example, while its owner is still opening a firewall), select **Set up anyway** or **Set up without testing**. A webhook's **signing key** is shown once more: give it to your receiver so it can check each delivery's signature. Bluedeer can't show it again; you can make a new one later.

The address must start with `https://` and be reachable from the internet, with no user name or password in it. Tokens and API keys go in their own field. Bluedeer keeps the address, the token and the signing key encrypted and never shows them again: the screen shows only the address's host and the token's last four characters. Deliveries never follow a redirect.

### Splunk

In Splunk, open **Settings** > **Data inputs** > **HTTP Event Collector**, make a token for Bluedeer and note its index. In Bluedeer, enter your Splunk's address with the collector's port, such as `https://splunk.example.com:8088` (Bluedeer adds `/services/collector/event` itself), and the token. Optionally, choose an index and a source type (`bluedeer:activity` when left empty). If indexer acknowledgement is on for the token, turn on **Wait for Splunk to confirm**: a delivery then counts only once Splunk confirms it indexed the events. Each event carries its own time, so Splunk files it at the moment it happened.

### Microsoft Sentinel

Bluedeer sends to Microsoft Sentinel through Azure Monitor's Logs Ingestion API, signing in as an app of your Microsoft Entra tenant. Bluedeer publishes a ready-made [Azure template](https://api.bluedeer.ai/v1/activity/tools/bluedeer-activity-dcr.json) that makes the table and the rule, and [parsers to Microsoft's normalised schemas](https://api.bluedeer.ai/v1/activity/tools/BluedeerActivity-ASim.kql) (Authentication, User Management and Audit Event); the Microsoft Sentinel form links both. In Azure:

1. Deploy the template in Sentinel's Log Analytics workspace (or make a custom table for Bluedeer's Activity and a data collection rule that sends a stream to it yourself; the stream's name starts with `Custom-`). Note the rule's **logs ingestion endpoint**, its **immutable ID** (it starts with `dcr-`) and the **stream name**: the template gives all three as its outputs.
2. In Microsoft Entra, register an app for Bluedeer and make a **client secret** for it. Note the **tenant ID**, the app's **client ID** and the secret's **value** (not its ID).
3. On the data collection rule, give the app the **Monitoring Metrics Publisher** role. It can take a few minutes to apply.

In Bluedeer, enter the logs ingestion address (it ends in `.ingest.monitor.azure.com`), the client secret, the tenant ID, the client ID, the rule's ID and the stream name. There is no format to choose: Sentinel gets its own columns, with each event's time as its `TimeGenerated`. **Send a test event** says exactly what is wrong if something is: for example, that Microsoft Entra refused the client secret, or that the app may not send to the rule yet because it lacks the role. When the secret expires, make a new one for the app and **Replace** it in Bluedeer.

### Datadog

In Datadog, make an API key under **Organization Settings** > **API Keys**. In Bluedeer, enter your Datadog site's HTTP logs intake, such as `https://http-intake.logs.datadoghq.com/api/v2/logs`, and the API key. Datadog only takes events from the last 18 hours, so to bring older history into Datadog use a pull API key instead.

### Elastic

Add an Elastic Agent with an **HTTP Endpoint** input that is reachable from the internet. In Bluedeer, enter its address and, if the input asks for one, its token (Bluedeer sends it as a bearer token, or in the header you name). Choose **Elastic Common Schema**: it puts each event's own time in `@timestamp`, so a line sent from last year's history isn't filed as today. Use the event's `id` as the document id, so a line sent twice is stored once.

### Sumo Logic

In Sumo Logic, add an **HTTP Logs and Metrics** source and copy its address. In Bluedeer, enter that address. It holds the source's own token, so Bluedeer keeps it secret and only ever shows its host.

### Webhook

Enter your receiver's HTTPS address and, if it asks for one, a token. Bluedeer sends the token as a bearer token, or in the header you name. Every delivery is a JSON array of events (or one line per event for CEF and LEEF), and is signed:

- `X-Bluedeer-Signature-256: sha256=<hex>` is an HMAC-SHA256 of the body with your signing key. Many collectors check this one.
- `webhook-id`, `webhook-timestamp` and `webhook-signature: v1,<base64>` follow the Standard Webhooks scheme: an HMAC-SHA256 of the id, the timestamp and the body, joined by dots. Refuse a delivery whose timestamp is too old.

Answer with any 2xx status once you have stored the events. Any other answer, or none, and Bluedeer sends the same events again later.

## Formats

- **Bluedeer JSON**: every field of the event as Bluedeer writes it. Pick it unless your tools expect one of the others.
- **OCSF**: the Open Cybersecurity Schema Framework, for tools and data lakes that read it.
- **Elastic Common Schema**: Elastic's own field names, for Elastic Security.
- **CEF**: one line of text per event, for ArcSight and older collectors. Have the collector key each event on `externalId`, which holds the event's id, or a resend can duplicate it.
- **LEEF**: one line of text per event, for IBM QRadar.

## What each destination shows

Each destination has its own card with how it stands, in plain words:

- **Delivering:** up to date, with the time of the last delivery.
- **Catching up:** sending what it hasn't received yet, with how many lines are left.
- **Starting:** waiting for its first delivery.
- **Failing:** since when and why, for example "its address was not found (HTTP 404)" or "it refused the token". Bluedeer keeps trying and holds the destination's place, so nothing is lost.
- **Paused:** someone paused it. Nothing is sent until it is resumed.
- **Paused by Bluedeer:** its deliveries kept failing for too long, or your SIEM refused its token. The owner and every admin get an Inbox notice and an email. Fix the cause (for example, replace the token), then select **Resume**.
- **Paused by Bluedeer support:** if Bluedeer support paused a destination (for example, when the receiving address kept refusing or overloading), you can't resume it yourself. Nothing is lost while it is paused. Contact Bluedeer support to have it resumed; it then sends everything it missed, in order.

The card also says what it sends, whether plan history goes there, the last line it delivered and how far behind it is, its token's last four characters, who set it up and when. **Delivery health** shows its last attempt and success, failures in a row and the last reason, its last heartbeat, how many events it delivered, and any events your SIEM refused (see below), with a link to the destination's own lines in Activity. Each destination shows its recent deliveries and failures, and a count for each of the last seven days.

When nothing has happened in the workspace for a while, Bluedeer sends a quiet destination a **heartbeat** event naming the last line it has, at regular intervals. Your SIEM can alert when heartbeats stop: that means the stream itself stopped, not just that the workspace was quiet.

## Manage a destination

- **Pause** and **Resume**: pausing stops deliveries until someone resumes it; resuming continues from where it stopped.
- **Send a test event**: checks the address and the token at any time, without moving the destination's place.
- **Change** the address, or **Replace** the token: the new one replaces the old one at once and is never shown again.
- **New signing key** (webhooks): the old key stops working at once, so give the new one to your receiver straight away.
- **Send earlier lines again**: from a day, or after a line's place in the chain. Use it after your SIEM lost data or to fill a gap. Your SIEM receives lines it may already have, and drops them by each event's `id`.
- **Delete**: type the destination's name to confirm. Activity stops going there at once, and its address, token, signing key and delivery history are deleted. What it already delivered stays in your SIEM, and the Activity log itself is unchanged.

Every one of these is a line in Activity, under **Security**, and the owner and every admin (except whoever did it) get an Inbox notice. A paused or deleted stream can't go unnoticed.

### Events your SIEM refused

If your SIEM refuses a single event as malformed, Bluedeer sets it aside and delivers the rest, so one bad event never holds up the others. Set-aside events are listed under **Delivery health** with their place and reason. Fix what your SIEM expects, then select **Send them again**.

## Plan history

Lines about how the workspace's plan changed are the owner's alone in Activity. They go only to destinations and keys the owner set up or approved. When an admin sets one up, or changes the address or token of one the owner approved, its card says plan history is not included, and the owner can select **Approve** to include it.

## Pull API keys

Under **Pull API keys**, select **Make a key**. Give it a name, choose when it expires (or never), and optionally list the addresses or ranges your SIEM calls from, one per line, such as `203.0.113.0/24`. The key is shown once, with a **Copy** button and ready-made requests for curl, Elastic Agent and Microsoft Sentinel. Bluedeer keeps only a fingerprint of it.

Your SIEM sends the key as a bearer token:

```
GET /v1/activity/events?start=all&limit=500
Authorization: Bearer bdak_…
```

The answer holds `events`, a `next_cursor` to pass back as `cursor` for the next page, and `has_more`, which says whether more is waiting now. Without a cursor, `start` is `all` (the whole history), `now`, or a date. Pass `format` (`json`, `ocsf`, `ecs`, `cef` or `leef`) to choose the form. Add `include=content` (with `json` only) to have each line carry the exact text its fingerprint was made from, for the checker below. If Bluedeer answers 429, wait for the time its `Retry-After` header gives, then continue. Your SIEM keeps the cursor: to fetch again from an earlier point, start it again from a date or a line's place (`after_seq`).

- **Elastic Agent:** use the Custom API (CEL) input with the ready-made program, which keeps the cursor between polls.
- **Microsoft Sentinel:** set it up as a destination (above), or use a codeless connector's REST API poller with the ready-made settings: each poll starts at its time window (`start`), pages with `cursor` from `next_cursor`, and stops when `has_more` is false. Drop duplicates by the event's `id` in your parser.

The list shows each key's last four characters, who made it and when, when it expires, where it may be used from and when it was last used. **Revoke** stops a key at once. Making, revoking and using a key are lines in Activity (use is counted per day), and Bluedeer ends a key on its expiry day.

## Check nothing was dropped or changed

Your security team can prove, from what your SIEM holds, that no line was dropped, reordered or altered:

1. **Nothing missing:** every event carries its place in the workspace's chain, `chain.seq`. Places follow each other with no holes, so a missing number is a dropped line. A line that was withheld or erased still arrives, as a short stub with its place.
2. **Nothing changed or reordered:** each event's `chain.prev_hash` equals the `chain.row_hash` of the event before it, and `row_hash` is the SHA-256 of the chain's format, the workspace, the place, `prev_hash` and `content_hash`, joined by new lines.
3. **Signed by Bluedeer:** once a day, an event of record `checkpoint` signs the latest fingerprint with Bluedeer's Ed25519 key. Check its signature against Bluedeer's public keys, published at [https://api.bluedeer.ai/v1/activity/signing-keys](https://api.bluedeer.ai/v1/activity/signing-keys) (each `public_key` is the raw 32-byte Ed25519 key, in base64), and that its fingerprint equals the `row_hash` of the line at its place.

Bluedeer's checker does all three for you. [Download the checker](https://api.bluedeer.ai/v1/activity/tools/verify-stream.mjs) (also under **Check nothing was dropped or changed** on the Streaming page) and run it with Node on the events your tool stored, exported as Bluedeer's JSON format, and on the published signing keys saved to a file: `node verify-stream.mjs events.jsonl --keys signing-keys.json`. It says whether any line is missing between the first and the last, whether any was changed, and whether each daily checkpoint was signed by Bluedeer. Nothing leaves your computer. For the strongest check, pull with `include=content`: each line then carries the exact text its fingerprint was made from.

Order events by `chain.seq`, never by time. Every event also has a stable `id`: use it to drop duplicates, which can happen after an outage or a resend. An Activity export's .zip also holds the exact content Bluedeer fingerprinted and a script that checks it (see [Export Activity](https://support.bluedeer.ai/team-and-enterprise/analytics-and-activity/workspace-activity.md)).

## What leaves Bluedeer, and what never does

A stream carries what the Activity log holds: who did what, to what, when, and the outcome, with people's names and email addresses, as owners and admins see it in Activity. On Security lines it also carries the network address and browser the action came from.

It never carries the content of messages or files, prompts to the AI or its answers, what a connector's action sent, passwords, tokens or keys, the titles of private chats, or personal data that Censor PII hid from the AI. Where AI is processed and Censor PII decide what reaches the AI; they don't change what a stream sends. The stream goes where the owner or an admin points it, so check where your SIEM keeps its data.

## Related

- [See a workspace's activity](https://support.bluedeer.ai/team-and-enterprise/analytics-and-activity/workspace-activity.md)
- [What Bluedeer Enterprise is](https://support.bluedeer.ai/team-and-enterprise/plan-overviews/what-is-enterprise.md)
