Vector v0.49.0 release notes
The protobuf codecs do not support all telemetry types. Specifically, the following applies:
- Decoder: supports logs.
- Encoder: supports logs and traces.
Metrics are not supported. Any future updates will be noted in changelogs.
In this version, the
aws_s3defaultretry_strategyis to never retry. A workaround to restore the correct default behavior is to set:retry_strategy: type: custom status_codes: []or alternatively to retry every request:
retry_strategy: type: all
The Vector team is excited to announce version 0.49.0!
Please refer to the upgrade guide for breaking changes in this release.
Release highlights:
- A
websocketsource was introduced. A WebSocket source in Vector enables ingestion of real-time data from services that expose WebSocket APIs. - The
httpsink’suriandrequest.headersconfig fields now support templating, enabling dynamic construction based on event data. - The
--watch-configflag now also watches for changes in enrichment table files. - Fixed a race condition that could cause negative values in the
vector_buffer_byte_sizeandvector_buffer_eventsgauges. - The
prometheus_remote_writesink now offers aexpire_metrics_secsconfig option. This fixes an issue where incremental metrics were preserved for the lifetime of Vector’s runtime causing indefinite memory growth.
Vector Changelog
11 new features
- The
httpsink’suriconfig is now templateable, allowing for dynamic URI building based on event fields.Thanks to jorgehermo9 for contributing this change! - Added a
query_settingsandasync_insert_settingsoption in theclickhousesink, which allows users to configure asynchronous inserts.Thanks to pm5 for contributing this change! - The
--watch-configflag now also watches for changes in enrichment table files. - Added
time_settingsconfiguration to thededupetransform, allowing themax_ageof items in the deduplication cache to be set. This helps distinguish between true duplicates and expected repetition in data over longer periods of time. - Added a
max_packet_sizeoption to set max packet size for themqttsource and sink.Thanks to simplepad for contributing this change! - Added a new
websocketsource.Thanks to benjamin-awd for contributing this change! - Added the
max_sizeconfiguration option for memory buffers.Thanks to graphcareful for contributing this change! - The
request_retry_partialbehavior for theelasticsearchsink was changed. Now only the failed retriable requests in a bulk is retried (instead of all requests).Thanks to Serendo for contributing this change! - Added a TTL-based cache for metric sets.
- Introduced the
expire_metrics_secsconfiguration to the Prometheus remote write sink, leveraging the new TTL-based cache. - This resolves an issue where incremental metrics were retained for the entire lifetime of Vector, leading to unbounded memory growth.
Thanks to GreyLilac09 for contributing this change!- Adds support for Redis Sentinel in the
redissink.Thanks to 5Dev24 for contributing this change! - Adds support for the Redis ZADD command in the
redissink.Thanks to 5Dev24 for contributing this change!
6 enhancements
- Extends retry logic in
aws_s3sink by allowing users to configure which requests to retry.Thanks to jchap-pnnl, jhbigler-pnnl for contributing this change! - The
httpsinkrequest.headersconfiguration now supports templated values.Thanks to notchairmk for contributing this change! - The enrichment functions now support an optional wildcard parameter where a match succeeds if the field value equals either the wildcard or the actual comparison value.Thanks to nzxwang for contributing this change!
The
natssink now supports message headers when publishing to JetStream.It introduces a configurable, templated Nats-Msg-Id header that ensures a unique ID for each message. This enables broker-level deduplication, resulting in stronger delivery guarantees and exactly-once semantics when combined with idempotent consumers.
Thanks to benjamin-awd for contributing this change!- The
protobufcodecs now support all telemetry data types (logs, metrics, traces).Thanks to pront for contributing this change! - The
UnsignedIntTemplatenow supportsstrftimeformatting. For example, this%Y%m%d%Htemplate evaluates timestamps to a number.Thanks to 5Dev24 for contributing this change!
15 bug fixes
- The
utilizationmetric is now properly published periodically, even when there are no events flowing through the components. - Fixed a bug in the
elasticsearchsink that caused URI credentials to be ignored. They are now correctly used.Thanks to ynachi for contributing this change! - Previously the
postgressink healthcheck was not implemented correctly. Now Vector can start whenhealthcheck.enabledis set tofalse.Thanks to jorgehermo9 for contributing this change! - Secret names in the configuration can now contain hyphens. For example `“SECRET[systemd.vm-token]” is now valid.Thanks to optician for contributing this change!
- The
natssink now does not return an error when an unresolvable or unavailable URL is provided.Note: If--require-healthyis set, Vector stops on startup.Thanks to rdwr-tomers for contributing this change! - VRL programs can now read the
interval_msfield. This field was previously writable but not readable.Thanks to thomasqueirozb for contributing this change! - Fixed an issue where tags were not modifiable via VRL if
metrics-tag-valueswas set tofull.Thanks to thomasqueirozb for contributing this change! - Fixed an issue in the
dnstapandtcpsources where throughput could drop significantly when the number of connections exceeded the number of available cores. - Fixed a race condition that caused negative values to be reported by the
vector_buffer_byte_sizeandvector_buffer_eventsgauges.Thanks to vparfonov for contributing this change! - Fixed an issue that could cause a panic when reading environment variables containing non-UTF8 data. Such variables are now handled gracefully.Thanks to kurochan for contributing this change!
- Prevented a panic when
DD_API_KEYvalue contains newline characters. Such values are now handled gracefully.Thanks to kurochan for contributing this change! - Batches encoded using newline-delimited framing now include a trailing newline at the end.Thanks to jszwedko for contributing this change!
- Fixed a potential hang in Vector core caused by the internal concurrent map. This issue could prevent Vector from shutting down cleanly.Thanks to jorgehermo9 for contributing this change!
- Fixed a
log_to_metricconfiguration bug where theall_metricsfield could not be used without also specifyingmetrics. It can now be set independently.Thanks to pront for contributing this change! - The
log_to_metrictransforms now emits a pair expansion error. This error was previously silently ignored.Thanks to pront for contributing this change!
1 chore
- Previously
heroku_logsanddemo_logssinks could output logs, metrics and traces depending on the decoding. Now they can only output logs. This behavior was unintuitive and undocumented.Thanks to thomasqueirozb for contributing this change!
VRL Changelog
0.26.0
Breaking Changes & Upgrade Guide
The
parse_cefnow trims unnecessary whitespace around escaped values in both headers and extension fields, improving accuracy and reliability when dealing with messy input strings. authors: yjagdale (https://github.com/vectordotdev/vrl/pull/1430)The
parse_syslogfunction now treats RFC 3164 structured data items with no parameters (e.g.,[exampleSDID@32473]) as part of the main message, rather than parsing them as structured data. Items with parameters (e.g.,[exampleSDID@32473 field="value"]) continue to be parsed as structured data. (https://github.com/vectordotdev/vrl/pull/1435)encode_lz4no longer prepends the uncompressed size by default, improving compatibility with standard LZ4 tools. A newprepend_sizeflag restores the old behavior if needed. Also,decode_lz4now also acceptsprepend_sizeand abuf_sizeoption (default: 1MB). authors: jlambatl (https://github.com/vectordotdev/vrl/pull/1447)
New Features
Added
haversinefunction for calculating haversine distance and bearing. authors: esensar Quad9DNS (https://github.com/vectordotdev/vrl/pull/1442)Add
validate_json_schemafunction for validating JSON payloads against JSON schema files. An optional configuration parameterignore_unknown_formatsis provided to change how custom formats are handled by the validator. Unknown formats can be silently ignored by setting this totrueand validation continues without failing due to those fields. authors: jlambatl (https://github.com/vectordotdev/vrl/pull/1443)