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 -> AWS S3
#
# Run Vector as a customer-managed host agent. Keep AWS credentials, profiles,
# instance roles, and bucket policy in AWS or deployment tooling, not in Beacon
# config. This template relies on the standard AWS credential provider chain.
data_dir = "/var/lib/vector/beacon-s3"
[sources.beacon_runtime]
type = "file"
include = ["{{LOG_PATH}}"]
read_from = "end"
[sources.beacon_inventory]
type = "file"
include = ["{{INVENTORY_LOG_PATH}}"]
read_from = "beginning"
[transforms.beacon_runtime_json]
type = "remap"
inputs = ["beacon_runtime"]
source = '''
. = parse_json!(.message)
if exists(.gen_ai.usage.input_tokens) {
value, err = to_int(.gen_ai.usage.input_tokens)
if err == null {
.input_tokens = value
}
}
if exists(.gen_ai.usage.output_tokens) {
value, err = to_int(.gen_ai.usage.output_tokens)
if err == null {
.output_tokens = value
}
}
if exists(.gen_ai.usage.cache_read.input_tokens) {
value, err = to_int(.gen_ai.usage.cache_read.input_tokens)
if err == null {
.cache_read_input_tokens = value
}
}
if exists(.gen_ai.usage.cache_creation.input_tokens) {
value, err = to_int(.gen_ai.usage.cache_creation.input_tokens)
if err == null {
.cache_creation_input_tokens = value
}
}
if exists(.gen_ai.usage.reasoning.output_tokens) {
value, err = to_int(.gen_ai.usage.reasoning.output_tokens)
if err == null {
.reasoning_output_tokens = value
}
}
if exists(.gen_ai.usage.cost_usd) {
value, err = to_float(.gen_ai.usage.cost_usd)
if err == null {
.cost_usd = value
}
}
'''
[transforms.beacon_inventory_json]
type = "remap"
inputs = ["beacon_inventory"]
source = '''
. = parse_json!(.message)
'''
[sinks.beacon_runtime_s3]
type = "aws_s3"
inputs = ["beacon_runtime_json"]
bucket = "${BEACON_S3_BUCKET}"
region = "${AWS_REGION:-us-east-1}"
key_prefix = "${BEACON_S3_PREFIX:-beacon}/runtime/date=%F/"
filename_time_format = "%s"
filename_append_uuid = true
filename_extension = "jsonl.gz"
compression = "gzip"
content_encoding = "gzip"
content_type = "application/x-ndjson"
storage_class = "${BEACON_S3_STORAGE_CLASS:-STANDARD}"
[sinks.beacon_runtime_s3.encoding]
codec = "json"
[sinks.beacon_runtime_s3.framing]
method = "newline_delimited"
[sinks.beacon_runtime_s3.batch]
max_bytes = 10000000
timeout_secs = 300
[sinks.beacon_runtime_s3.request]
retry_attempts = 10
retry_initial_backoff_secs = 1
retry_max_duration_secs = 300
[sinks.beacon_inventory_s3]
type = "aws_s3"
inputs = ["beacon_inventory_json"]
bucket = "${BEACON_S3_BUCKET}"
region = "${AWS_REGION:-us-east-1}"
key_prefix = "${BEACON_S3_PREFIX:-beacon}/inventory/date=%F/"
filename_time_format = "%s"
filename_append_uuid = true
filename_extension = "jsonl.gz"
compression = "gzip"
content_encoding = "gzip"
content_type = "application/x-ndjson"
storage_class = "${BEACON_S3_STORAGE_CLASS:-STANDARD}"
[sinks.beacon_inventory_s3.encoding]
codec = "json"
[sinks.beacon_inventory_s3.framing]
method = "newline_delimited"
[sinks.beacon_inventory_s3.batch]
max_bytes = 10000000
timeout_secs = 300
[sinks.beacon_inventory_s3.request]
retry_attempts = 10
retry_initial_backoff_secs = 1
retry_max_duration_secs = 300