This commit is contained in:
Aliaksandr Valialkin 2024-05-28 22:45:14 +02:00
parent 52766cd896
commit 64dd2c313b
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -1404,7 +1404,7 @@ See also:
`| field_values field_name` [pipe](#pipe) returns all the values for the given [`field_name` field](https://docs.victoriametrics.com/victorialogs/keyconcepts/#data-model)
with the number of logs per each value.
For example, the following query returns all the values with the number of matching logs for the field `level` over logs logs for the last 5 minutes:
For example, the following query returns all the values with the number of matching logs for the field `level` over logs for the last 5 minutes:
```logsql
_time:5m | field_values level
@ -1417,12 +1417,12 @@ up to 10 values for the field `user_id` over logs for the last 5 minutes:
_time:5m | field_values user_id limit 10
```
If the limit is reached, then the set of returned values is random. Also the number of matchin logs per each returned value is zeroed for performance reasons.
If the limit is reached, then the set of returned values is random. Also the number of matching logs per each returned value is zeroed for performance reasons.
See also:
- [`field_names` pipe](#field_names-pipe)
- [`uniq` pipe)(#uniq-pipe)
- [`uniq` pipe](#uniq-pipe)
### fields pipe