Google Cloud Storage
Beaconv0.0.38 added Google Cloud Storage support for teams that want Beacon endpoint events stored in a GCS bucket for data lake, SIEM, archive, or downstream detection workflows. Beacon remains the local JSONL producer and writes one source of truth, the active runtime JSONL log. Your customer-managed Vector agent tails that file and uploads gzip-compressed NDJSON objects to GCS.
Use this path when you want Beacon events forwarded to Google Cloud Storage without storing Google Cloud credentials, service accounts, workload identity settings, bucket IAM, lifecycle, retention, or encryption settings in Beacon endpoint configuration.
Runtime log paths
| Mode | Runtime log |
|---|---|
| User mode | ~/.beacon/endpoint/logs/runtime.jsonl |
| System mode | /var/log/beacon-agent/runtime.jsonl |
/var/log/beacon-agent/runtime.jsonl without per-user home directory permissions.
Prerequisites
- Beacon endpoint installed and writing local JSONL.
- A Google Cloud Storage bucket for Beacon runtime logs.
- Vector installed or deployable through your endpoint-management tooling.
- A service account or workload identity available through Application Default Credentials for the process running Vector,
gcloud, orgsutil.
roles/storage.objectCreator is usually enough for production uploads because it can create objects without listing or reading them. Add viewer, retention, CMEK, or bucket-specific conditional IAM only if your Google Cloud controls require them. Configure bucket lifecycle, retention, versioning, audit logs, and encryption in Google Cloud.
Install the GCS pack
Generate the Google Cloud Storage content pack for a managed system-mode deployment:README.mdwith setup and validation stepsgcs-upload-smoke-test.shfor one-shot GCS validation uploadsvector.tomlfor customer-managed Vector forwardingsample-event.jsonlwith Beacon endpoint sample events
--log-path /path/to/runtime.jsonl. The generated gcs-upload-smoke-test.sh and vector.toml use the selected path.
One-shot smoke test
Use the generated smoke-test script to upload the current runtime log once. This is only for validation because it re-uploads the whole file every time.gcloud storage cp when available and falls back to gsutil cp. Both rely on Application Default Credentials, workload identity, active gcloud configuration, or your managed endpoint secret tooling. Beacon does not store Google Cloud credentials.
Confirm the uploaded object:
Production forwarding
For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tailsruntime.jsonl, checkpoints file offsets in its data_dir, batches Beacon events, and writes gzip-compressed newline-delimited JSON objects into Google Cloud Storage.
Install Vector using your normal endpoint management tooling, then copy the generated config into Vector’s config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl:
BEACON_GCS_BUCKET, optional BEACON_GCS_PREFIX, optional BEACON_GCS_STORAGE_CLASS, and any Google Application Default Credentials or workload identity settings through the Vector service environment, host identity, MDM, or secret tooling. Do not store Google Cloud destination secrets in Beacon endpoint configuration.
The template expects a Vector version with the file source, remap transform, and gcp_cloud_storage sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON with newline-delimited framing so GCS receives one Beacon event per line, without a Vector wrapper.
The template uses date-partitioned key_prefix, filename_time_format = "%s", and filename_append_uuid = true so production forwarding does not overwrite previous GCS objects. It also sets compression = "gzip", content_encoding = "gzip", and content_type = "application/x-ndjson".
If you adapt the config or use another forwarder, it should:
- Checkpoint file offsets.
- Follow Beacon’s local file rotation at the active
runtime.jsonlpath. - Keep each Beacon event as one JSON object per line.
- Batch newline-delimited JSON records.
- Use non-overwriting object keys.
- Retry transient failures without duplicating the whole file.
- Keep Google Cloud credentials, service-account bindings, workload identity, bucket IAM, lifecycle, retention, and encryption outside Beacon endpoint configuration.
Validate forwarding
Confirm the Beacon runtime log exists and has recent endpoint events:Content retention
Beacon content retention controls what can be written toruntime.jsonl and forwarded to GCS. Use metadata or redacted for stricter deployments:
full only when prompt text, tool input, command output, and retained content match your approved telemetry collection policy.
Related
beacon endpoint gcs
Review Google Cloud Storage command syntax, flags, and examples.
SIEM forwarding
Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS S3, Google Cloud Storage, and customer-managed pipelines.
Endpoint event schema
Review normalized Beacon JSONL fields and example events.
Supported surfaces
Review supported agent harnesses, deployment modes, storage, and forwarding.

