Installing VictoriaLogs
VictoriaLogs
- Collect app logs using various log collectors.
- Analyze logs using the LogsQL query language.
Installation using Yandex Cloud Marketplace
-
Navigate to the folder dashboard
and select Managed Service for Kubernetes. -
Click the name of the Managed Service for Kubernetes cluster you need and select the
Marketplace tab. -
Under Application available for installation, select VictoriaLogs and click Go to install.
-
Configure the application:
- Namespace: Create a new namespace, e.g.,
victoria-logs. If you leave the default namespace, VictoriaLogs may work incorrectly. - Application name: Specify the application name.
- Namespace: Create a new namespace, e.g.,
-
Click Install.
-
Wait for the application to change its status to
Deployed. -
Set up
victoria-logs-single-serverport forwarding to your local computer:kubectl port-forward service/victoria-logs-single-server 30000:9428 \ --namespace <application_namespace> -
Make sure the VictoriaLogs web interface is accessible by opening
http://localhost:30000.
Installation using a Helm chart
-
Install Helm
v3.8.0 or higher. -
Install kubect
and configure it to work with the new cluster. -
To install a Helm chart
with VictoriaLogs, run the following command, specifying the parameters of the resources you created earlier:helm pull oci://cr.yandex/yc-marketplace/yandex-cloud/victoria-logs/victoria-logs-single \ --version 1.0.0 \ --untar && \ helm install \ --namespace victoria-logs \ --create-namespace \ victoria-logs-single ./victoria-logs-single/Note
If you are using a Helm version below 3.8.0, append the
export HELM_EXPERIMENTAL_OCI=1 && \string to the command to enable Open Container Initiative (OCI) support in the Helm client.