docs/VictoriaLogs/querying/README.md: fix the docs for /select/logsql/stream_field_values when the limit arg is set

It returns up to `limit` values for the given log stream field with the biggest number of hits.
This commit is contained in:
Aliaksandr Valialkin 2025-03-19 12:40:26 +01:00
parent ea4534d154
commit acdd6faecf
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -783,9 +783,7 @@ Below is an example JSON output returned from this endpoint:
}
```
The `/select/logsql/stream_field_values` endpoint supports optional `limit=N` query arg, which allows limiting the number of returned values to `N`.
The endpoint returns arbitrary subset of values if their number exceeds `N`, so `limit=N` cannot be used for pagination over big number of field values.
When the `limit` is reached, `hits` are zeroed, since they cannot be calculated reliably.
The `/select/logsql/stream_field_values` endpoint supports optional `limit=N` query arg, which allows limiting the number of returned values to `N` with the biggest number of hits.
By default the `(AccountID=0, ProjectID=0)` [tenant](https://docs.victoriametrics.com/victorialogs/#multitenancy) is queried.
If you need querying other tenant, then specify it via `AccountID` and `ProjectID` http request headers. For example, the following query returns stream field values stats