The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Beacon Endpoint Agent Microsoft Sentinel Pack
This pack forwards Beacon endpoint JSONL events into Microsoft Sentinel through
Azure Monitor Agent custom log collection. Beacon still writes one local source
of truth: runtime.jsonl. Azure tenant IDs, client secrets, workspace IDs, DCR
identifiers, and ingestion endpoints stay in Azure Monitor, deployment tooling,
or customer-managed forwarders, not in Beacon endpoint configuration.
Prerequisites
- Beacon endpoint installed and writing local JSONL.
- A Log Analytics workspace with Microsoft Sentinel enabled.
- Azure Monitor Agent installed or deployed to the endpoint.
- A custom Log Analytics table named
BeaconRuntime_CL. - A Data Collection Rule associated with the endpoint and workspace.
For MDM or managed endpoint deployment, prefer Beacon system mode so Azure
Monitor Agent can tail /var/log/beacon-agent/runtime.jsonl without per-user
home directory ACLs.
Install
Generate this pack:
beacon endpoint sentinel install-pack --output ./beacon-sentinel-pack
The generated dcr-template.json points at the Beacon log path selected by the
CLI:
- User mode:
~/.beacon/endpoint/logs/runtime.jsonl - System mode:
/var/log/beacon-agent/runtime.jsonl - Custom mode: the value passed with
--log-path
Sentinel Setup
- Create the
BeaconRuntime_CLcustom table usingtable-schema.json. - Create or update an Azure Monitor Data Collection Rule using
dcr-template.json. - Associate the DCR with endpoints that run Azure Monitor Agent.
- Confirm the DCR uses the transform in
dcr-transform.kql. - Wait for Azure Monitor Agent to tail new lines from
runtime.jsonl.
The DCR uses a Custom Text Logs source because Beacon writes newline-delimited
JSON. The transform parses each RawData line with todynamic(RawData),
projects stable columns for common hunting workflows, and preserves the original
Beacon event in RawData.
Validate
Write a fresh Beacon validation event:
beacon endpoint sentinel validate
After Azure Monitor Agent ships the new line, validate in Microsoft Sentinel or Log Analytics:
BeaconRuntime_CL
| where TimeGenerated > ago(24h)
| where Message has "Beacon endpoint Sentinel validation event"
| project TimeGenerated, HostName, UserName, HarnessName, EventAction, Message
If the validation query does not return data, check the DCR association, the Azure Monitor Agent health state, the configured file path, and the table schema. The target table must exist before the DCR can route transformed records to it.
Hunting Content
Use queries.kql for validation and starter hunting queries. Use
detections.kql as example analytics rule logic; review and tune thresholds,
repository names, and severity mappings before enabling alerts in production.
CEF and Syslog
Microsoft Sentinel can also collect CEF and Syslog through Azure Monitor Agent.
That path is useful for SOCs standardized on CommonSecurityLog, but it is not
the default Beacon recommendation because Beacon events are rich structured JSON
with prompts, tool calls, commands, files, runtime metadata, and optional raw
fields. Flattening those events into CEF loses useful context.
Without Azure Monitor Agent: Vector and the Logs Ingestion API
On a machine outside Azure, Azure Monitor Agent needs Azure Arc first, and it
does not run on macOS at all. The Vector that ships with Beacon (/opt/beacon/bin/vector
on macOS and Linux, vector.exe beside beacon.exe on Windows) posts each line
to the Logs Ingestion API with a Microsoft Entra app registration instead. It
needs no Arc and no agent extension.
Deploy
dcr-logs-ingestion-template.jsonwith your workspace's resource ID, and note thedcrImmutableIdoutput. It runs the same transform into the sameBeaconRuntime_CLtable. The DCR gets its own logs ingestion URL (az monitor data-collection rule show ... --query endpoints.logsIngestion); pass a Data Collection Endpoint only if you use Private Link.Grant your app registration the Monitoring Metrics Publisher role on that DCR.
On each host, as root or an administrator:
beacon endpoint sentinel forwarder install --system \ --endpoint <logs ingestion URL> --dcr-immutable-id <dcr-...> \ --tenant-id <tenant> --client-id <app> --client-certificate app.pfxIt runs Vector as a system service with this config, the values written in and the credential readable only by root (SYSTEM and Administrators on Windows).
vector.tomlin this pack is the same config for running Vector yourself, with the values in the Vector service's environment:BEACON_SENTINEL_DCE_ENDPOINT,BEACON_SENTINEL_DCR_IMMUTABLE_ID,AZURE_TENANT_ID,AZURE_CLIENT_IDandAZURE_CLIENT_SECRET.
The host needs outbound HTTPS to login.microsoftonline.com and the
*.ingest.monitor.azure.com hostname of the logs ingestion URL.
Content Handling
Beacon forwards retained prompt text, tool input, command output, raw tool payloads, and related local telemetry to Microsoft Sentinel subject to Beacon's secret redaction, sanitization, truncation, and event-size limits.