Skip to main content

Command overview

beacon endpoint connect forwards this endpoint’s telemetry to Asymptote so it appears on the Asymptote dashboard. In user mode, the signed-in CLI account authorizes a device-specific ingest key without copying the account token into endpoint state or giving it to Vector. System mode retains browser approval because unattended and system installs are account-free. Forwarding is opt-in and revocable. Runtime telemetry starts at the end of the existing runtime log, so pre-connect live events are not sent, with one bounded exception: every connect uploads the last 30 days of agent sessions read from the runtimes’ own session stores, so the dashboard shows recent work at once. With the scheduled session sync on, its later runs keep adding session-store records to the log, and those are forwarded as they are written. Inventory starts at the beginning of inventory_state.jsonl so the dashboard receives the endpoint’s current inventory baseline. Revoking the device from the dashboard stops ingestion within about a minute. beacon endpoint disconnect stops the forwarder and removes the local credentials.
Command syntax

Prerequisites

  • Beacon endpoint installed (beacon endpoint install) and writing local JSONL.
  • A current beacon login session with device:enroll scope for user mode.
  • Vector 0.50 or newer on the machine. Beacon installs one for you: 0.56.0 at /opt/beacon/bin/vector from the macOS package and Linux .deb/.rpm, as beacon-vector beside beacon from Linux archives and Homebrew on Linux, and as the tap’s beacon-vector keg from Homebrew on macOS. Intel Macs get 0.50.0, the last x86_64 macOS build Vector published. connect stops if no usable Vector is found or if Vector rejects the forwarder config.
  • System mode only: a browser where an organization member can approve the device.

What connect does

  1. Locates Vector: --vector-bin, then BEACON_VECTOR_BIN, then /opt/beacon/bin/vector, the beacon-vector keg in each Homebrew prefix, a linked vector in each Homebrew prefix, then PATH. The beacon-vector keg is tried ahead of any other Homebrew Vector because it is the copy the tap pins at a supported version.
  2. Renders the forwarder config for the selected privacy mode into a scratch directory, with a placeholder key, and runs vector validate on it. A config Vector rejects stops connect here, before anything is sent to the server.
  3. Runs the session backfill sweep into the runtime log, in user and system mode. It is local and runs before a new key is issued.
  4. Registers this machine’s hostname, operating system, architecture, Beacon version, install id, and install mode. User mode uses the signed-in account’s device:enroll scope; system mode uses browser approval. The server returns a separate bcn_device_* ingest key.
  5. Writes the device key once to asymptote/vector-secrets.json with mode 0600. The account token is not persisted by the endpoint flow and is never printed.
  6. Renders asymptote/vector.toml with the selected privacy mode, runs vector validate on the file the service will run, stages the session backfill in cloud-backfill.jsonl beside the runtime log, installs a service unit, and starts it.
  7. Records the non-secret enrollment, including privacy mode, in asymptote/enrollment.json and config.json’s managed_ingest block.
A first connect that fails at vector validate or at loading the service saves no enrollment record, so the endpoint is not connected and beacon endpoint disconnect cleans up what was written. After disconnect --keep-credentials, status reports not connected and names the kept device id. Re-running connect on a connected machine reuses its install id, so the server rotates the existing device’s key in place instead of creating a second device. Because that rotation invalidates the key the running forwarder holds, the new config is validated before enrollment: a re-run whose config Vector rejects leaves the forwarder, its key, and its buffer untouched. Under launchd the new forwarder is loaded only after the old one has exited (Vector drains in-flight requests first), and if the new instance has not started within the wait, connect fails and points at launchctl print for the job. Some steps can only fail after the server has issued the key: storing it, validating the config that carries the ingest URL, writing the service unit, starting the service, and recording the enrollment. connect writes asymptote/connect-pending as soon as the key arrives and removes it only when every step has succeeded. If a step in between fails, connect says the connect is incomplete and names the retry, and beacon endpoint status reports managed ingest as not connected, with connect_incomplete: true in --json. On a reconnect, the forwarder still running holds the key the server just rotated out, so the previous enrollment record and config are not treated as a working connection. On a first connect, Beacon stops and removes any partial forwarder before returning the error, so a later onboarding retry can safely select local-only telemetry. Run beacon endpoint connect again once the cause is fixed. An approval that is cancelled or expires before a key is issued rotates nothing and leaves an existing connection as it was.

Session backfill

Every connect, first or not and in user or system mode, uploads recent session history so the dashboard is not empty until an agent runs again. Beacon first runs the same bounded sweep as beacon endpoint install: the last 30 days of sessions from each runtime’s own session store, newest first, at most 24 MiB. A system connect reads the active console user’s session stores, as a system install does. endpoint install --connect and the onboarding wizard skip that sweep because the install has just run it. Before the forwarder starts, Beacon copies the poll events those sweeps wrote, timestamped in the last 30 days and newest kept up to 24 MiB, from the runtime log and its archives into cloud-backfill.jsonl beside the runtime log. The forwarder reads that file once from the beginning into the same runtime upload, through the same privacy transform as live events. Hook, OTLP, and plugin events recorded before the connection stay local. A reconnect stages the backfill again, so sessions the agents wrote while the endpoint was disconnected, or before a system endpoint had a console user to read for, still arrive. This can resend events the forwarder already shipped; every event keeps the deterministic event ID it was written with, and the dashboard collapses a resent event on it. A privacy-mode change clears the forwarder’s checkpoints and replaces the staged file, so the backfill is resent in the new mode, and disconnect removes the file. --no-backfill or BEACON_BACKFILL=0 connects without uploading history. Once the connect has finished, Beacon also tells Asymptote Managed how much history it staged: one POST /v1/ingest/backfill with {"session_count": N, "event_count": M}, authenticated with the device key like the forwarder’s uploads. It carries counts only, is sent on every connect (zeros when nothing was staged), and never fails the connect: a server that does not know the path is ignored at once, and a server that answers 429 (its per-device ingest limit, likely while the forwarder uploads the backfill) or a 5xx, or no network, is retried with backoff, honoring Retry-After up to five seconds, for at most five attempts and fifteen seconds before the report is dropped. Enrollment also sends the device’s privacy mode (standard or metadata_only). The backfill is a one-time upload per connect. With the scheduled session sync on, the job keeps reading the session stores every 15 minutes, and the forwarder ships what it writes as ordinary new runtime events. When the backfill stopped at its size limit, the job’s first runs also read the rest of the last 30 days, so that history arrives over the next runs rather than not at all.

Privacy modes

The onboarding wizard records one of two modes. connect uses that choice unless --privacy-mode overrides it: The transform runs locally in Vector before batching, buffering, or HTTPS upload. Changing modes requires rerunning beacon endpoint connect; install, repair, and package upgrades re-render the config but keep the recorded mode. A mode change stops the forwarder and clears its disk buffer before the new config is installed, so events queued under the previous mode are not uploaded under the new one.

Keeping the forwarder config current

connect is not the only time vector.toml is written. beacon endpoint install, beacon endpoint repair, and the macOS, .deb, and .rpm package upgrades re-render it in place for an endpoint that is already connected, so a fix to the forwarder pack, such as a Metadata-only transform that removes more fields, reaches the endpoint without a reconnect, which would rotate the device key. The re-render:
  • keeps the recorded ingest URL and privacy mode (changing the mode is still a connect decision), and refuses to guess when enrollment.json and config.json disagree about it;
  • never enrolls, makes no network request, and does not read or rewrite the secrets file;
  • leaves vector-data/, and with it Vector’s checkpoints and buffer, as it is;
  • validates the new config with the forwarder’s own Vector exactly as connect does, and only then replaces the old file atomically. A config Vector rejects is reported as a warning, and the running forwarder keeps the old one;
  • restarts the forwarder when it is running, even when the config is current, after checking that its Vector still accepts that config. Switching to restricted log access replaces the runtime log with a copy, and Vector keeps reading the replaced file until it restarts, then resumes in the copy where it left off; an upgrade may also have installed a new Vector. A stopped forwarder is never started, and a forwarder whose config was refused, or whose Vector is missing, keeps running as it was.
The forwarder also reads the first rotated log (runtime.jsonl.1), as the Sentinel forwarder does, so lines written to a replaced log before a restart are picked up at the next rotation instead of lost. It still ships nothing written before the device was connected. It does nothing on an endpoint that is not connected, after a connect that did not finish, when the forwarder service is not installed, or where the service manager cannot run it (supervised mode); when Vector is missing it warns and keeps the old config. An install run with --no-start leaves the forwarder alone; the macOS package installs that way and then runs beacon endpoint asymptote reconcile --system itself. Run that command by hand (add --json for the result) to reconcile without reinstalling. Install, repair, and package upgrades also rewrite the forwarder’s launchd or systemd unit when it differs from the one Beacon writes (v1.3.46). Endpoints connected before v1.3.37 had a forwarder that logged to /tmp; the rewrite moves those logs to ~/Library/Logs/Beacon or /Library/Logs/Beacon and restarts the forwarder if it was running. A stopped forwarder stays stopped, and the device key, enrollment, and Vector’s checkpoints are left alone.

Files and services

The directory is 0700. The device key appears only in the secrets file, which Vector reads through its file secret backend; it is in neither vector.toml, config.json, nor the forwarder’s environment. install-id pins this machine’s install id before enrollment starts, so a connect retried after a failure rotates the same device’s key instead of registering a second device.

Flags

disconnect accepts the same path flags and --json (which prints disconnected, kept_credentials, and device_id), plus --keep-credentials, which keeps the enrollment record and device key so a later connect can reuse this device without a new approval.

Examples

Connect the default per-user install
Connect a system-mode install from the signed package
Connect from a machine without a browser
Connect with metadata-only forwarding
Stop forwarding and remove the local credentials

Checking the connection

beacon endpoint status prints one line for managed ingest: whether this endpoint is connected, to which organization, the device id, the active privacy mode, whether the forwarder service is loaded and running, whether the credential is still valid (it asks the ingest service, with a 3-second timeout), and the size of the disk buffer. --json exposes the same under managed_ingest. A system install that was never connected, usually an MDM rollout, leaves the line out, as does any install that forwards to its own S3, GCS, or Falcon LogScale bucket; status lists those forwarders instead.
credential revoked means the key was revoked or expired, or the approving user is no longer a member of the organization; Vector is logging 401s and dropping batches. Run beacon endpoint connect again to re-enroll.

Revocation and disconnect

Revoke a device, or every device a person approved, from the dashboard’s Beacon Endpoints page. The ingest service rejects the key within about a minute. disconnect is the local half: it stops and removes the forwarder and its config and, unless --keep-credentials is given, the enrollment record and device key. beacon endpoint uninstall removes the forwarder and the asymptote/ directory as part of removing the endpoint, except that --keep-config keeps the enrollment record and device key. Neither revokes the device server-side; the CLI tells you where to do that.

Offline behavior

Vector keeps reading into an on-disk buffer (512 MiB for runtime, 256 MiB for inventory) while the network is unavailable and drains it when connectivity returns. The ingest service accepts old timestamps and the dashboard collapses re-sent duplicates on Beacon’s deterministic event id, so a laptop that was asleep or offline catches up without loss or double counting, up to the buffer size.

Asymptote Managed forwarding

Wire contract, what leaves the machine, revocation, and offline behavior.

beacon endpoint asymptote

The forwarder pack, for running Vector by hand.

Endpoint status

Inspect the forwarder and credential state.

Endpoint paths

Every file and service Beacon writes.