Vector v0.63.0 release notes
The COSE team is happy to announce Vector 0.63.0! 🚀
Thanks to the 21 contributors who made the 32 changes in this release:
Upgrading to 0.63? Read the upgrade guide.
Vector Changelog
1 breaking change
- Reading a metric event in VRL now includes its value
VRL now exposes the value of a metric event under a field named after its type, such as
.gaugeor.distribution. This changes the result of programs that already read these paths or the whole event:.gaugeon a gauge metric previously returnednull. It now returns an object containing.gauge.value, soexists(.gauge)changes fromfalsetotrue.- Reading the whole event with
.includes the value field, so functions such asencode_json(.)andkeys(.)include it in their output. unnestcopies the value into each row. Withmetric_tag_values: full,unnest!(.tags.region)on a distribution copies every sample into every row.
Thanks to JinchengCao for contributing PR #27264!
1 security change
- The
kubernetes_logssource now trusts only the configured cluster CA when connecting to the Kubernetes API server with a custom CA. Update the kubeconfig CA bundle if your connection relies on an additional CA from the system trust store.
4 new features
- GCP components (
gcp_cloud_storage,gcp_pubsub,gcp_stackdriver_logs,gcp_stackdriver_metrics,gcp_chronicle_unstructured) now accept Workload Identity Federation credentials files ("type": "external_account") throughcredentials_pathor theGOOGLE_APPLICATION_CREDENTIALSenvironment variable. This lets Vector running outside of GCP authenticate with short-lived federated tokens instead of long-lived service account keys. The
datadog_agentsource now accepts indexed (idx) trace payloads from current Datadog Agents and converts them to the same trace events as the legacy format.The new advanced
max_trace_expansion_bytesoption, which defaults to 100 MiB, limits how far the indexed trace payloads in a single request can expand during conversion. It counts both strings copied from a payload’s string table and numbers, booleans, and ids that become longer tag strings or list elements. Requests that would exceed it are rejected with HTTP 422.The
prometheus_scrapesource has a newtargetsoption that can discover and scrape Kubernetes Pods.A
kubernetesentry undertargetswatches Pods through the Kubernetes API and scrapes the ones annotated withprometheus.io/scrape: "true". Theprometheus.io/port,prometheus.io/path,prometheus.io/scheme, andprometheus.io/param_<name>annotations control each target, and the annotation prefix is configurable.namespacesandlabel_selectorlimit which Pods are considered. Astaticentry lists fixed URLs:type: prometheus_scrape targets: - static: urls: - http://localhost:9090/metrics - kubernetes: role: pod namespaces: [default, monitoring]Metrics from discovered Pods get
namespace,pod,node, andcontainertags. Pod labels and annotations can be added as tags through thepod_label_tagsandpod_annotation_tagsallowlists, with their keys converted to valid Prometheus label names.Current limitations:
- Only
role: podis supported, and a source can have onekubernetesentry. - Pods without the scrape annotation are not scraped.
- Pending, Succeeded, and Failed Pods, and Pods without an IP address yet, are skipped.
- Builds without the
kubernetesfeature rejectkubernetestargets.
A source sets either
endpointsortargets. To combine fixed URLs with discovery, list them in astaticentry undertargets.- Only
- Sinks now support
measure_cpu_usage: trueto emit thecomponent_cpu_usage_ns_totalcounter. It covers the sink task and the tasks it spawns, such as request building and HTTP connections. Thekafkasink’s compression and network I/O run on librdkafka threads and are not counted.Thanks to gwenaskell for contributing PR #27097!
12 enhancements
Update the experimental
native_jsoncodec to emit canonical Protobuf JSON using Vector’s stable Protobuf event model. The new representation preserves transportable event metadata and omits deprecated Protobuf fields, while the decoder continues to accept the previous native JSON shape.Leap-second timestamps are normalized during Protobuf JSON encoding rather than rejected. For example,
2016-12-31T23:59:60.500Zbecomes2017-01-01T00:00:00.500Z. The event remains encodable, but the original leap-second representation is not preserved when decoded.Compatibility between versions before and after this change:
Producer → consumer Behavior Previous native_json→ new decoderSupported through the legacy reader. New native_json→ previous decoderUnsupported; previous versions cannot read the new {"event": ...}envelope.For rolling upgrades of
native_jsonpipelines, upgrade consumers before producers, starting at the downstream end. Intermediaries that encode withnative_jsonemit the new format after upgrading, even when reading legacy input. For rollbacks, roll back producers first and drain queued data in the new format before rolling back consumers. Decoding legacy input cannot restore metadata omitted by older producers.Use binary
nativefor mixed-version Vector pipelines that need compatibility in both directions. Configure both ends to usenativewith matching framing, such aslength_delimitedover TCP.- The trace-level heartbeat message (
Beep.) is now emitted at most once per minute instead of engaging the default 10-second internal log rate limiter, which cut its trace-mode log footprint ~4x while keeping the liveness marker visible.Thanks to yackushevas for contributing PR #27149! - Improve the
journaldstartup error forcurrent_boot_only: falsewith systemd versions 250 through 257. The error identifies thejournalctlexecutable and explains how to use a compatible version, including in containers, or collect only the current boot instead. - Windows executables now include file and product version information in the Properties dialog’s Details tab.
- The
lokisink has a newexpanded_key_caseoption. Set it topreserveto keep label and structured metadata keys expanded from*(or a prefix ending with*) in their original case, so keys such asuserIdanduseridno longer collide. The default,lowercase, keeps the current behavior. - Add an
on_conflictoption to thepostgressink. Setting this option todo_nothingappendsON CONFLICT DO NOTHINGto the insert, so rows that violate a unique constraint are skipped instead of failing the whole batch. Skipped rows are reported as intentionally discarded events. The default,error, keeps the existing behavior.Thanks to vaughnw128 for contributing PR #26628! VRL can now read metric values in the
remaptransform,filterandrouteconditions, and unit tests. Example paths include:.counter.valueand.gauge.value.set.values.distribution.samples.aggregated_histogram.buckets.aggregated_summary.quantiles.sketch.count,.sketch.min,.sketch.max,.sketch.sum, and.sketch.avg
The
remaptransform can also set.counter.valueor.gauge.valueon a metric of that type, for example,.gauge.value = 100, and replace.distribution.sampleswith an array of{value, rate}objects, for example,.distribution.samples = [{"value": 2.5, "rate": 1}]. Other metric value fields are read-only.- Loading and reloading configurations with many or large
remaptransforms is now significantly faster. Vector no longer compiles everyremapprogram while building the configuration graph just to look up the transform’s output ports, so a reload no longer recompiles every program in the configuration. - Vector’s Rustls crypto provider is now selected at build time with the
tls-ringandtls-aws-lcCargo features, so Vector can be built without Ring. Release builds enabletls-ringand keep using Ring. Custom builds that use--no-default-featuresshould addtls-ringto keep the previous provider. If neither feature is enabled, Vector installs no provider, and an application embedding Vector must install one before starting it.Thanks to apatruddog for contributing PR #27167! - Concurrent transforms now reuse their definitions across batches, avoiding repeated deep copies of large VRL programs and routing rules.
- The
stopped_totalinternal metric has a newreasontag that indicates whether an error triggered the shutdown. The value isnonefor a normal shutdown, such as after a shutdown signal or after all sources finish. Otherwise, the value is one ofsource_aborted,transform_aborted,sink_aborted,api_failed, orreload_failed_to_restore.Thanks to gwenaskell for contributing PR #27212! - The
tls_client_metadatametadata field added by TCP-based sources withclient_metadata_keyset now includessubject_altnames, containing the Subject Alternative Names (DNS names, email addresses, URIs, and IP addresses) from the client TLS certificate. Each SAN is prefixed with its type (for exampleDNS:example.com,email:admin@example.com,URI:https://example.com, orIP Address:127.0.0.1) to match the output ofopenssl x509 -text. This key is only added when the client certificate contains Subject Alternative Names.
14 bug fixes
- Fixed
InvalidRequesterrors (“You can only specify one non-default checksum at a time”) from theaws_s3sink against S3-compatible services such as Cloudflare R2. The AWS SDK for Rust now calculates anx-amz-checksum-*request checksum by default, which conflicts with theContent-MD5header Vector already sends and which some S3-compatible providers reject outright. Request checksum calculation is now restricted to only when required, matching AWS’s own guidance for third-party S3-compatible endpoints.Thanks to Socialpranker for contributing PR #25803! - The
aws_s3source now respects theAWS_RESPONSE_CHECKSUM_VALIDATIONenvironment variable andresponse_checksum_validationAWS config setting.Thanks to Captain1653 for contributing PR #27208! - The
natssource no longer reports that it supports end-to-end acknowledgements, which it does not implement. A sink withacknowledgements.enabled: truedownstream of it now logs the “Silent data loss could occur” warning at startup, as for other sources without acknowledgement support. - Fixed a bug where the
syslogsource ignoredmax_lengthin UDP mode. The source now drops any datagram larger than the configured limit and reports a framing error. To preserve the previous behavior of accepting datagrams up to the transport limit, removemax_lengthfrom your UDP syslog configuration. - Reduce temporary allocations when
kubernetes_logsmerges partial container log lines (CRIPlines), especially when a message spans many lines.Thanks to thomasqueirozb for contributing PR #26516! - Fixed a bug where global acknowledgement settings overrode sink settings. Sink settings now take priority (documented behavior), allowing acknowledgements to be disabled for individual sinks.Thanks to johannesfloriangeiger for contributing PR #26966!
- HTTP client based components, such as the
httpandprometheus_remote_writesinks, now limit connection setup (the TCP connect, the TLS handshake and a proxyCONNECTtunnel) to 65 seconds, and outbound HTTP connections now enable TCP keepalive (probes after 60 seconds idle, every 60 seconds, up to 9 probes). Previously, a connection that the connection pool kept setting up in the background could stall in the TLS handshake forever, for example on a lossy network, and the leaked sockets eventually exhausted the process’s file descriptors.Thanks to AxisNow-Dev for contributing PR #27247! - The
gcp_pubsubsource now flushes acknowledgements for delivered events before completing a graceful shutdown, preventing unnecessary redelivery when Vector restarts. - Memory buffers configured with
max_sizenow report their limit asbuffer_max_size_bytes. Previously the byte limit was reported asbuffer_max_size_events, andbuffer_max_size_byteswas never emitted for them. PartitionedBatchernow checks the timer of each batch every time another batch completes, so a hot key can’t keep the batch of a key with few items from ever expiring.- Fixed a panic (
Replacing unknown sink from fanout) on config reload when a component ID is reused by a different kind of component, or when a failed reload restores a removed component. - End-to-end acknowledgements now report delivery failure when an event is dropped because routing or encoding failed in Vector’s shared sink paths. For example, if an HTTP sink’s URI contains
{{ route }}and an incoming event lacks theroutefield, an upstreamhttp_serversource with acknowledgements enabled returns HTTP400 Bad Requestto the sender. Previously the sender could receive a success response for that dropped event. - When every source had stopped because one of them failed or panicked, Vector could shut down as if all sources had finished normally, losing the source’s error. Vector now always shuts down with the error of the failed source.Thanks to gwenaskell for contributing PR #27252!
- TLS-enabled sources with
tls.verify_certificate: trueno longer fail the handshake of clients that resume a previous TLS session. Such clients previously had their connection rejected with asession id context uninitializederror.
VRL Changelog
0.40.0 (2026-11-30)
Enhancements
- Avoid temporary object-key allocations when inserting values through existing nested containers.
- The
encode_zstdfunction now includes the uncompressed size in the Zstandard frame header for inputs smaller than 128 KiB. This changes the compressed bytes and their hashes while remaining compatible with existing Zstandard decoders.
- The
ProgramInfo::target_queriesis now more precise forgetandunnest.getno longer records a query for the whole event; the paths it reads, such as.tagsinget(.tags, path), are recorded from its arguments as for any other query.unnestnow records the root of its target, because it copies the rest of the target around each element. Targets that prepare only the queried fields, such as Vector’s metric events, no longer prepare the whole event forgetcalls, and keep the other fields when usingunnest.Functions can record additional paths they read with the new
FunctionCompileContext::record_target_query. Hosts whose targets prepare only the queried fields should use it in custom functions that read the target directly instead of through their arguments. Previously, the root query fromgetcould hide a missing query in programs that also calledget; those functions may now readnulluntil they record the paths they read.
Thanks to JinchengCao for contributing PR #2075!
Fixes
- Prevent
Value::insertfrom partially modifying existing data when a path contains an invalid segment. Invalid paths still returnNone.
- Prevent
Upgrade guide
Reading a metric event in VRL now includes its value
Summary
VRL now exposes the value of a metric event under a field named after its type, such as
.gaugeor.distribution. This changes the result of programs that already read these paths or the whole event:.gaugeon a gauge metric previously returnednull. It now returns an object containing.gauge.value, soexists(.gauge)changes fromfalsetotrue.- Reading the whole event with
.includes the value field, so functions such asencode_json(.)andkeys(.)include it in their output. unnestcopies the value into each row. Withmetric_tag_values: full,unnest!(.tags.region)on a distribution copies every sample into every row.
Migration
If a program only needs the tags, unnest a local copy of them instead of the event:
Old
rows = unnest!(.tags.region)New
tag_view = {"tags": .tags} rows = unnest!(tag_view.tags.region)To keep the previous output of
encode_json(.), copy the event and delete the field for the metric’s type, such ascounter,gauge, ordistribution. For a gauge:Old
.tags.json = encode_json(.)New
event = . del(event.gauge) .tags.json = encode_json(event)