From 856c1896880ba534eb55619d4ea2c97d6aa6bc35 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 1 Oct 2024 16:13:12 +0200 Subject: [PATCH] docs/VictoriaLogs/querying/vlogscli.md: provide instructions on how to download run `vlogscli` --- docs/VictoriaLogs/querying/vlogscli.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/VictoriaLogs/querying/vlogscli.md b/docs/VictoriaLogs/querying/vlogscli.md index 67b86f783e..c1ac4dc0cb 100644 --- a/docs/VictoriaLogs/querying/vlogscli.md +++ b/docs/VictoriaLogs/querying/vlogscli.md @@ -10,7 +10,21 @@ menu: `vlogsqcli` is an interactive command-line tool for querying [VictoriaLogs](https://docs.victoriametrics.com/victorialogs/). This tool can be obtained from the linked release pages at the [changelog](https://docs.victoriametrics.com/victorialogs/changelog/) -or from [docker images](https://hub.docker.com/r/victoriametrics/vlogscli/tags). +or from [docker images](https://hub.docker.com/r/victoriametrics/vlogscli/tags): + +### Running `vlogscli` from release binary + +```sh +curl -L -O https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v0.33.0-victorialogs/vlogscli-linux-amd64-v0.33.0-victorialogs.tar.gz +tar xzf vlogscli-linux-amd64-v0.33.0-victorialogs.tar.gz +./vlogscli-prod +``` + +### Running `vlogscli` from Docker image + +```sh +docker run --rm -it docker.io/victoriametrics/vlogscli:v0.33.0-victorialogs +``` By default `vlogscli` sends queries to [`http://localhost:8429/select/logsql/query`](https://docs.victoriametrics.com/victorialogs/querying/#querying-logs). The url to query can be changed via `-datasource.url` command-line flag. For example, the following command instructs