VictoriaLogs Compatibility
This track measures whether the proxy keeps VictoriaLogs behavior usable and stable while exposing Loki-compatible semantics on top.
Scope​
- Translation to VictoriaLogs query and metadata endpoints
_streamparsing and synthetic label constructionfield_names,field_values,hits, andstats_query_rangeintegration- Service-name derivation, detected field values, and volume endpoints backed by VictoriaLogs
CI And Score​
- Workflow:
compat-vl.yaml - Score test:
TestVLTrackScore - Runtime matrix: real VictoriaLogs images of two versions, the latest
v1.4xrelease and the newestv1.5xrelease (v1.49.0,v1.54.0). Each version runs the score test, the version-sensitive checks and the range-metric table compared with Loki (TestCompat_Unwrap*,TestRangeMetric*,TestGrafanaClickout_*)
Support Policy​
Supported and tested versions are also listed in the README. The rules:
- Fully supported:
v1.49.0, the latestv1.4xrelease, and everyv1.5xrelease.v1.48.xand older are not supported. - Tested: two versions, the latest
v1.4xrelease (v1.49.0) and the newestv1.5xrelease (v1.54.0). A newv1.5xrelease with a published Docker image replaces the newest; thev1.5xreleases in between are supported but not tested. The pull-request CI image is pinned tov1.54.0, the newest tested release. - Floor:
-backend-min-versiondefaults tov1.49.0. Startup fails when the detected backend is older, with an error naming the flag. With an explicit older-backend-min-version(for example a Helm value still carryingv1.30.0) or-backend-allow-unsupported-version=truethe proxy starts, logs a warning on every start (backend version is below the supported VictoriaLogs lines, whatever the flag says), and the version is unsupported and untested: the proxy keeps no fallbacks for features older thanv1.49.0, for example thestats_query_rangeoffsetargument (v1.45). A backend whose version cannot be read only warns unless-backend-version-strict=true, and then behaves asv1.49.0. See Configuration. - Moving the floor or adding a version: a new
v1.5xrelease replaces the newest inmatrix_versions; when support for the oldest supported minor ends, the floor moves. In one change: updatematrix_versions,support_windowand the capability profiles intest/e2e-compat/compatibility-matrix.json, the supported-versions table in the README, the-backend-min-versiondefault (flag, Go fallback, Helm value),logsql.MinSupportedMinor, and the pinned image.TestVictoriaLogsSupportPolicyfails until these agree: the floor is the lowest matrix version and the onlyv1.4xentry, everyv1.5xminor fromv1.50up is present once, and the pin is a tested version.
Version Matrix​
| VictoriaLogs version | Coverage path | Version-specific focus |
|---|---|---|
v1.54.0 | PR and main CI pinned runtime; scheduled and manual matrix (tested) | Current pinned backend, the newest tested release. extra_filters and extra_stream_filters count against -search.maxQueryLen (default 16384 bytes); /select/logsql/query takes sort_direction; the newest/oldest-N read with limit returns every row of a shared timestamp once; a live tail matching too many new rows per second ends with an error; -healthcheck flag |
v1.53.0 | Supported, not tested | Previous pin. /internal/force_merge, /internal/force_flush, /internal/log_new_streams and /internal/partition/* require POST (the proxy does not call them) |
v1.52.0 | Supported, not tested | The line's only open-source image: the v1.52.1 and v1.52.2 patch releases (the long-term support line) have no open-source Docker image, v1.52.2 is published as -enterprise only; both are supported as v1.5x releases. Distroless image (no shell): compose health probes must exec the binary. json_array_concat pipe. Bare filter pipes starting with a non-word token or not are accepted again. Parse errors echo the query before the reason |
v1.51.1 | Supported, not tested | Cluster upgrade bridge: vlstorage v1.51.1 accepts vlselect v1.38.0 through v1.51.0; same LogsQL surface as v1.51.0 |
v1.50.0 | Supported, not tested | Stream fields in the column index (field_values fast path), dense pattern windowing |
v1.49.0 | Scheduled and manual matrix (tested); supported floor | Structured metadata shaping, volume endpoints |
Edge Cases Covered​
- Service name derived from labels when VictoriaLogs does not carry a native
service_name detected_fieldsanddetected_field/<name>/valuesderived from VictoriaLogs field content- Loki
index/statsbacked by one VictoriaLogsstats count(), count_uniq_hash(_stream_id)row over the window (entries and streams as Loki counts them;bytesis an estimate, VictoriaLogs has no chunk accounting);index/volumeandindex/volume_rangebacked by VictoriaLogsstats_query/stats_query_rangewithsum_len(_msg)(bytes) - Raw VictoriaLogs fields mapped into parsed fields or structured metadata without polluting stream labels
Runtime Capability Profiles​
The proxy reads the VictoriaLogs release from its /metrics endpoint and from response headers (only a version that names VictoriaLogs counts: the version of a vmauth, vlagent or VictoriaMetrics in front of it does not), takes the lowest release seen in the last window, and derives every capability gate from it in one table (see capability gates); feature probes (-backend-feature-probes) decide the gates they cover when no release is readable and cross-check the release when one is. It re-reads the release every -backend-version-reprobe-interval, so an upgrade or a rollback of VictoriaLogs changes the gates without a proxy restart. This keeps one binary safe across mixed backend versions while enabling newer LogsQL optimizations where available.
| VictoriaLogs version family | Capability profile | Stream metadata endpoints fast path (stream_field_*) | Metadata substring filter (q + filter=substring) | Dense patterns windowing profile |
|---|---|---|---|---|
v1.50.x+ | vl-v1.50-plus | enabled | enabled | enabled |
v1.49.x | vl-v1.49-plus | enabled | enabled | disabled (conservative profile) |
v1.30.x to v1.48.x (unsupported) | vl-v1.30-plus | enabled | enabled (always forwarded) | disabled (conservative profile) |
< v1.30.0 | legacy-pre-v1.30 | disabled (fallback to generic field_*) | enabled (always forwarded) | disabled |
| unknown (before first upstream response) | unknown | enabled (optimistic default) | enabled (always forwarded) | disabled (safe default) |
Current code gates:
- pattern extraction window density for
/loki/api/v1/patterns - stream-metadata-first label inventory/value lookups (
/select/logsql/stream_field_names,/select/logsql/stream_field_values)
As new LogSQL backend features land, this table and the capability derivation in proxy code should be updated together, with explicit tests per profile.
Feature Capability Matrix (v1.49.0 To v1.54.0)​
The table below tracks changelog-relevant LogSQL and metadata behavior between v1.49.0 and v1.54.0, and how the proxy should treat each band.
| Version band | Backend capability signals | Limitations / risks to account for | Proxy handling policy |
|---|---|---|---|
v1.49.x | filter=substring support for field_names / field_values and stream metadata browse endpoints; stats_query_range offset argument (since v1.45) | none on the supported floor | q + filter=substring is always forwarded and stats buckets are always anchored with offset; the proxy-side search window also serves the browse index and offset/limit paging |
v1.50.x | parser/query fixes and latest metadata/query behavior | none specific beyond normal backend saturation limits | enable vl-v1.50-plus profile, including dense patterns windowing and newest metadata behavior |
v1.51.x | coalesce pipe; limit/offset after stats on stats_query; unpack_json accepts JSON with leading spaces; stats_query/stats_query_range answer 502 when a storage node is unavailable | a filter pipe without the filter prefix is rejected unless it starts with field_name: | the translator emits ` |
v1.52.x | distroless image; json_array_concat pipe; filters starting with a non-word token or not are accepted without the prefix again; -search.maxQueueDuration is honoured for queued requests | no shell in the image; parse errors echo the query before the reason (cannot parse query arg [<query>]: <reason>) | same vl-v1.50-plus profile; compose health probes exec /victoria-logs-prod -version; the upstream error classifier reads both parse-error layouts, so invalid queries stay Loki 400 bad_data |
v1.53.x | /internal/force_merge, /internal/force_flush, /internal/log_new_streams and /internal/partition/* require POST; /delete/run_task is POST only; Unix socket listener | none for the proxy: it uses only the select endpoints | same vl-v1.50-plus profile |
v1.54.x | sort_direction=asc with limit on /select/logsql/query (the oldest N rows); -search.maxQueryLen applies to extra_filters and extra_stream_filters (a longer arg answers 400); the newest-N read with limit no longer drops or repeats rows of a shared timestamp; subqueries in a limit read or a live tail see the request's whole time range; a live tail matching too many new rows per second ends with an error; vlselect returns a storage node's error instead of a partial answer when partial responses are on; hidden_fields_filters in the request body no longer overrides the query-string one; -healthcheck flag; current pinned target | the proxy's own extra_filters must stay under -search.maxQueryLen | same vl-v1.50-plus profile; no proxy request depends on a v1.54 feature yet, so a rollback to an older v1.5x keeps every answer |
< v1.49.0 | not supported | outside the supported versions; modern drilldown/explore contracts are not tested there, and the proxy keeps no fallbacks for them (for example v1.44 and older ignore the stats_query_range offset argument) | block startup by default (backend-min-version), allow override with backend-allow-unsupported-version=true |
Capability Profile Guidance​
vl-v1.50-plus: use for latest backend capabilities and densest safe pattern windowing.vl-v1.49-plus: the floor profile.vl-v1.30-plus: base profile for every version with the stream metadata endpoints; no supported version maps to it (the floor isv1.49.0).legacy-pre-v1.30: fallback-only profile for versions without them.
Profile names describe where a capability starts, not the support floor, so the floor moving does not rename them. A detected version below the floor logs a startup warning (backend version is below the supported VictoriaLogs lines) whatever -backend-min-version says; such a version is unsupported and untested.
When adding a new profile or changing a gate, update three places in the same PR:
- runtime derivation in
internal/proxy/backend.go - capability metadata in
test/e2e-compat/compatibility-matrix.json - this document section
Backend Compression​
backend-compression=auto loopback detection: When the VL backend URL resolves to a loopback address (localhost, 127.0.0.1, ::1), auto mode selects identity (no compression) to avoid the overhead of compressing and decompressing data on the same host. For remote backends, auto selects gzip. You can override with an explicit value (gzip, zstd, none).