Skip to main content

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
  • _stream parsing and synthetic label construction
  • field_names, field_values, hits, and stats_query_range integration
  • 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.4x release and the newest v1.5x release (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 latest v1.4x release, and every v1.5x release. v1.48.x and older are not supported.
  • Tested: two versions, the latest v1.4x release (v1.49.0) and the newest v1.5x release (v1.54.0). A new v1.5x release with a published Docker image replaces the newest; the v1.5x releases in between are supported but not tested. The pull-request CI image is pinned to v1.54.0, the newest tested release.
  • Floor: -backend-min-version defaults to v1.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 carrying v1.30.0) or -backend-allow-unsupported-version=true the 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 than v1.49.0, for example the stats_query_range offset argument (v1.45). A backend whose version cannot be read only warns unless -backend-version-strict=true, and then behaves as v1.49.0. See Configuration.
  • Moving the floor or adding a version: a new v1.5x release replaces the newest in matrix_versions; when support for the oldest supported minor ends, the floor moves. In one change: update matrix_versions, support_window and the capability profiles in test/e2e-compat/compatibility-matrix.json, the supported-versions table in the README, the -backend-min-version default (flag, Go fallback, Helm value), logsql.MinSupportedMinor, and the pinned image. TestVictoriaLogsSupportPolicy fails until these agree: the floor is the lowest matrix version and the only v1.4x entry, every v1.5x minor from v1.50 up is present once, and the pin is a tested version.

Version Matrix​

VictoriaLogs versionCoverage pathVersion-specific focus
v1.54.0PR 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.0Supported, not testedPrevious pin. /internal/force_merge, /internal/force_flush, /internal/log_new_streams and /internal/partition/* require POST (the proxy does not call them)
v1.52.0Supported, not testedThe 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.1Supported, not testedCluster upgrade bridge: vlstorage v1.51.1 accepts vlselect v1.38.0 through v1.51.0; same LogsQL surface as v1.51.0
v1.50.0Supported, not testedStream fields in the column index (field_values fast path), dense pattern windowing
v1.49.0Scheduled and manual matrix (tested); supported floorStructured metadata shaping, volume endpoints

Edge Cases Covered​

  • Service name derived from labels when VictoriaLogs does not carry a native service_name
  • detected_fields and detected_field/<name>/values derived from VictoriaLogs field content
  • Loki index/stats backed by one VictoriaLogs stats count(), count_uniq_hash(_stream_id) row over the window (entries and streams as Loki counts them; bytes is an estimate, VictoriaLogs has no chunk accounting); index/volume and index/volume_range backed by VictoriaLogs stats_query / stats_query_range with sum_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 familyCapability profileStream metadata endpoints fast path (stream_field_*)Metadata substring filter (q + filter=substring)Dense patterns windowing profile
v1.50.x+vl-v1.50-plusenabledenabledenabled
v1.49.xvl-v1.49-plusenabledenableddisabled (conservative profile)
v1.30.x to v1.48.x (unsupported)vl-v1.30-plusenabledenabled (always forwarded)disabled (conservative profile)
< v1.30.0legacy-pre-v1.30disabled (fallback to generic field_*)enabled (always forwarded)disabled
unknown (before first upstream response)unknownenabled (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 bandBackend capability signalsLimitations / risks to account forProxy handling policy
v1.49.xfilter=substring support for field_names / field_values and stream metadata browse endpoints; stats_query_range offset argument (since v1.45)none on the supported floorq + 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.xparser/query fixes and latest metadata/query behaviornone specific beyond normal backend saturation limitsenable vl-v1.50-plus profile, including dense patterns windowing and newest metadata behavior
v1.51.xcoalesce 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 unavailablea filter pipe without the filter prefix is rejected unless it starts with field_name:the translator emits `
v1.52.xdistroless 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 requestsno 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 listenernone for the proxy: it uses only the select endpointssame vl-v1.50-plus profile
v1.54.xsort_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 targetthe proxy's own extra_filters must stay under -search.maxQueryLensame 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.0not supportedoutside 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 is v1.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).