The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
# Beacon Endpoint Agent -> Microsoft Sentinel, through the Azure Monitor Logs Ingestion API
#
# For hosts that cannot run Azure Monitor Agent, which on a machine outside Azure means
# onboarding it to Azure Arc first. Vector posts to a data collection rule with a Microsoft
# Entra app registration instead, so no Arc and no agent extension are needed. Beacon's
# packages ship Vector: /opt/beacon/bin/vector on macOS and Linux, and vector.exe beside
# beacon.exe on Windows.
#
# Each record carries the original Beacon line as RawData. The DCR in
# dcr-logs-ingestion-template.json runs the same transform as the Azure Monitor Agent
# path, so both paths produce identical BeaconRuntime_CL rows.
#
{{SETTINGS_NOTE}}
# The app registration needs the Monitoring Metrics Publisher role on the DCR.
data_dir = "{{DATA_DIR}}"
{{SECRET_BACKEND}}
[sources.beacon_runtime]
type = "file"
# The active log and the file a rotation renamed it to, so lines written just before a rotation
# are still sent when Vector was behind or stopped. Checkpoints keep either from being read twice.
include = ["{{LOG_PATH}}", "{{LOG_PATH}}.1"]
read_from = "{{READ_FROM}}"
[transforms.beacon_raw_record]
type = "remap"
inputs = ["beacon_runtime"]
source = '''
raw = string!(.message)
parsed, err = parse_json(raw)
ts = now()
if err == null && is_object(parsed) {
ts = parse_timestamp(parsed.timestamp, format: "%+") ?? now()
}
. = {"RawData": raw}
.timestamp = ts
'''
[sinks.beacon_sentinel]
type = "azure_logs_ingestion"
inputs = ["beacon_raw_record"]
endpoint = "{{ENDPOINT}}"
dcr_immutable_id = "{{DCR_IMMUTABLE_ID}}"
stream_name = "Custom-BeaconRuntimeRaw"
timestamp_field = "TimeGenerated"
[sinks.beacon_sentinel.auth]
{{AUTH}}
# A line's read position is saved only once Azure has accepted it, so a restart or a stretch of
# failures resends rather than skips.
[sinks.beacon_sentinel.acknowledgements]
enabled = true
# The Logs Ingestion API rejects a request over 1 MB with 413, and the sink's own default is 10 MB.
# 512 KB leaves room for the JSON escaping of RawData; one Beacon event is at most 64 KB.
[sinks.beacon_sentinel.batch]
max_bytes = 524288
max_events = 1000
timeout_secs = 30
# Retried without a limit, backing off to five minutes, so an outage or a credential that is not
# yet accepted holds the log back instead of dropping it.
[sinks.beacon_sentinel.request]
retry_initial_backoff_secs = 1
retry_max_duration_secs = 300
# The sink's default retries only 408, 429 and 5xx, and drops a batch on any other error. A new
# role assignment on the DCR answers 403 for up to 30 minutes, so 401 and 403 are retried too.
# 400 and 413 are not: resending the same request cannot fix them.
[sinks.beacon_sentinel.retry_strategy]
type = "custom"
status_codes = [401, 403, 408, 429, 500, 502, 503, 504]
{{VECTOR_LOG}}