Skip to content

VictoriaLogs

VictoriaLogs stores container logs, Kubernetes events and Falco alerts. Grafana reads it through its Loki plugin. Upstream docs.

Namespacevictoria-logs
Sourcevictoria_logs.go
ExposureLAN · victorialogs.madhan.app (built-in UI)
Storage100Gi on the default longhorn class
AuthNone
SettingValueWhy
retentionPeriod30d
retentionDiskSpaceUsage40 GiBEach replica shares a worker disk with every other Longhorn volume, so cap by size as well as age
Limits1000m / 1Gi
EndpointUsed by
http://victoria-logs-victoria-logs-single-server.victoria-logs.svc.cluster.local:9428/insert/opentelemetryOTel otlp_http/logs exporter, which appends /v1/logs
…:9428/selectGrafana Loki datasource

Query in Grafana’s Explore with the VictoriaLogs datasource (main org only):

{namespace="ollama"} |= "error"
{namespace="falco"} |= "Terminal shell in container"

Or directly: curl "https://victorialogs.madhan.app/select/logsql/query?query=*&limit=5".

Check VictoriaLogs runs and the agents export without errors:

Terminal window
kubectl get pods -n victoria-logs
kubectl logs -n opentelemetry -l app.kubernetes.io/instance=otel-agent --tail=50

The datasource URL has /loki appended. It must end at /select.