VictoriaLogs¶
Query log streams from VictoriaLogs.
Warning
This datasource integration has not been fully validated yet. If you use it successfully (or run into issues), please open an issue.
Config¶
datasource:
type: victorialogs # required
url: http://localhost:9428 # required
username: admin # optional
password: pass # optional
verify: false # optional default(false) — verify SSL certificate
account_id: '0' # optional — sets X-VictoriaMetrics-Account-Id header
project_id: '0' # optional — sets X-VictoriaMetrics-Project-Id header
Notes¶
- The
rulequery must be a valid LogsQL expression (e.g._msg:error). - Results are fetched via
/select/logsql/querywith a limit of 5000 log lines. - The result count (
data.len) is the total number of log lines returned. - Each result row is a parsed JSON object from the NDJSON response.
account_idandproject_idare used for multi-tenancy in VictoriaMetrics enterprise setups.