docs/VictoriaLogs/querying/README.md: mention that /select/logsql/query endpoint may return arbitary number of logs matching the given query filter, and this is OK

This is needed for https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8507
and https://github.com/VictoriaMetrics/victorialogs-datasource/issues/261
This commit is contained in:
Aliaksandr Valialkin 2025-03-16 00:01:42 +01:00
parent 23c4e4cdb2
commit d2f4698e3f
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -35,6 +35,10 @@ For example, the following query returns all the log entries with the `error` wo
curl http://localhost:9428/select/logsql/query -d 'query=error'
```
This command returns all the logs with the `error` word, which are stored in the VictoriaLogs running at `localhost:9428`.
There are no limits on the number of returned logs - the command above may return billions of logs without any issues.
See [these docs](#command-line) for details.
The response by default contains all the [fields](https://docs.victoriametrics.com/victorialogs/keyconcepts/#data-model) for the selected logs.
Use [`fields` pipe](https://docs.victoriametrics.com/victorialogs/logsql/#fields-pipe) for selecting only the needed fields.