VictoriaLogs icon

VictoriaLogs

Lightweight log database for edge devices

Observability Apache-2.0
VictoriaLogs illustration

What is this?

VictoriaLogs is a lightweight log database designed for resource-constrained environments. It collects, stores, and lets you search through machine logs directly on your edge device — no cloud connection needed.

Think of it as a black-box flight recorder for your factory floor equipment. When something goes wrong, a technician can search “what happened at 14:32” and get answers in seconds.

Example: how a factory uses it

Your packaging line machines write thousands of log lines per minute — motor temperatures, conveyor speeds, error codes. VictoriaLogs runs on the edge gateway, collecting all those logs locally. When a technician investigates a jam at 14:32, they open Grafana, search the logs, and see exactly which motor overheated three seconds before the line stopped. No cloud round-trip, no waiting — the answer is right there on the device.

Network Topology

graph TD
    subgraph Log Sources
        PLC[PLC Syslog]
        MQTT[Mosquitto Logs]
        VPN[VPN Service Logs]
        NR[Node-RED Logs]
    end

    subgraph vlogs.network bridge
        VLOGS[VictoriaLogs
:5514 syslog UDP/TCP
:9428 WebUI + API] MCP[vlogs-mcp
:8181 MCP Server] VOL[(vlogs-data volume
7d retention)] end subgraph Consumers GF[Grafana :3000] AGENT[AI Agent via MCP] end PLC -->|syslog :5514| VLOGS MQTT -->|syslog :5514| VLOGS VPN -->|syslog :5514| VLOGS NR -->|syslog :5514| VLOGS VLOGS --> VOL VLOGS -->|LogsQL| GF MCP -->|queries| VLOGS AGENT -->|streamable HTTP| MCP

Import this app

Paste this into your Margo manager to import the app:

public.ecr.aws/g2n4p2m7/belden-margo:1.2.1_victorialogs-margo-manifest

Run: oras pull public.ecr.aws/g2n4p2m7/belden-margo:1.2.1_victorialogs-margo-manifest

Technical details

Deployment Profiles

  • PROPOSED — quadlet (WG-PROPOSAL-02)

    Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64.

Application Description (margo.yaml)

apiVersion: margo.org/v1alpha1
kind: ApplicationDescription
id: com-belden-victorialogs
metadata:
  name: "VictoriaLogs Stack"
  version: 1.2.0+victorialogs-margo-manifest
  description: "Log aggregation stack: VictoriaLogs with native syslog ingestion, WebUI, and MCP server for agentic queries. External systems send syslog (RFC 3164/5424) to port 1514."
  catalog:
    application:
      tagline: "Syslog aggregation with agentic query for edge"
      tags:
        - "logging"
        - "syslog"
        - "observability"
        - "mcp"
        - "edge-computing"
    organization:
      - name: "VictoriaMetrics"
        site: "https://victoriametrics.com"

deploymentProfiles:
  - id: "quadlet-v1"
    type: "quadlet"
    description: "Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64."
    requiredResources:
      cpu:
        cores: 1
        architectures:
          - amd64
          - arm64
      memory: "2560Mi"
      storage: "10Gi"
      interfaces:
        - type: ethernet
    components:
      - name: "victorialogs-quadlet"
        properties:
          repository: oci://public.ecr.aws/g2n4p2m7/belden-margo
          revision: 1.2.0_victorialogs-quadlet
          wait: true
          timeout: "5m0s"

parameters:
  syslogPort:
    value: 5514
    targets:
      - pointer: "SYSLOG_PORT"
        components:
          - victorialogs-quadlet

  webuiPort:
    value: 9428
    targets:
      - pointer: "WEBUI_PORT"
        components:
          - victorialogs-quadlet

  vlogsHostName:
    value: "host.containers.internal"
    targets:
      - pointer: "MCP_VLOGS_HOST"
        components:
          - victorialogs-quadlet

  mcpPort:
    value: 8081
    targets:
      - pointer: "MCP_PORT"
        components:
          - victorialogs-quadlet

  retentionPeriod:
    value: "7d"
    targets:
      - pointer: "RETENTION_PERIOD"
        components:
          - victorialogs-quadlet

configuration:
  sections:
    - name: "Syslog Ingestion"
      settings:
        - parameter: syslogPort
          name: "Syslog Port"
          immutable: false
          schema: portSchema

    - name: "Web Interface"
      settings:
        - parameter: webuiPort
          name: "WebUI Port"
          immutable: false
          schema: portSchema

    - name: "MCP Server"
      settings:
        - parameter: vlogsHostName
          name: "MCP VLOGS Hostname"
          immutable: false
          schema: vlogsHostnameSchema
        - parameter: mcpPort
          name: "MCP Port"
          immutable: false
          schema: portSchema

    - name: "Storage"
      settings:
        - parameter: retentionPeriod
          name: "Retention Period"
          immutable: false
          schema: retentionSchema

  schema:
    - name: portSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

    - name: vlogsHostnameSchema
      dataType: string
      allowEmpty: false

    - name: retentionSchema
      dataType: string
      allowEmpty: false

Podman Quadlet Units

PROPOSED — quadlet (WG-PROPOSAL-02)

victorialogs.container

# victorialogs.container — VictoriaLogs with native syslog listener + WebUI
# Listens for syslog (RFC 3164/5424) on port 5514 (mapped from host).
# Exposes built-in VMUI web interface on port 9428.
# Retention is time-based; adjust -retentionPeriod for production use.

[Unit]
Description=VictoriaLogs — log storage, syslog listener, and web UI
After=network-online.target

[Container]
Image=docker.io/victoriametrics/victoria-logs:v1.24.0-victorialogs
ContainerName=victorialogs
PublishPort=${SYSLOG_PORT}:514/udp
PublishPort=${SYSLOG_PORT}:514/tcp
PublishPort=${WEBUI_PORT}:9428/tcp
Network=vlogs.network
Volume=vlogs-data.volume:/vlogs-data
Environment=GOMEMLIMIT=1500MiB
Exec=-storageDataPath=/vlogs-data -retentionPeriod=${RETENTION_PERIOD} -syslog.listenAddr.tcp=:514 -syslog.listenAddr.udp=:514
StopTimeout=30
NoNewPrivileges=true
Memory=2g

HealthCmd=wget -qO- http://127.0.0.1:9428/health || exit 1
HealthInterval=30s
HealthTimeout=10s
HealthRetries=3
HealthStartPeriod=15s

[Service]
Restart=always
Environment=SYSLOG_PORT=5514
Environment=WEBUI_PORT=9428
Environment=RETENTION_PERIOD=7d

[Install]
WantedBy=default.target

vlogs-data.volume

# vlogs-data.volume — named volume for VictoriaLogs data persistence

[Volume]

vlogs-mcp.container

# vlogs-mcp.container — MCP endpoint (streamable HTTP) for agentic log queries
# Connects to VictoriaLogs for LogsQL queries via MCP protocol.
# Honesty flag: mcp-victorialogs is a young project — verify transport/auth each release.

[Unit]
Description=VictoriaLogs MCP server — agentic query endpoint
After=network-online.target
After=victorialogs.service
Requires=victorialogs.service

[Container]
Image=ghcr.io/victoriametrics/mcp-victorialogs:v1.9.0
ContainerName=vlogs-mcp
PublishPort=${MCP_PORT}:8081/tcp
Network=vlogs.network
Environment=VL_INSTANCE_ENTRYPOINT=http://${MCP_VLOGS_HOST}:${WEBUI_PORT}
Environment=MCP_SERVER_MODE=http
Environment=MCP_LISTEN_ADDR=:8081
Environment=GOMEMLIMIT=192MiB
StopTimeout=15
NoNewPrivileges=true
Memory=256m

[Service]
Restart=always
Environment=MCP_PORT=8081
Environment=MCP_VLOGS_HOST=host.containers.internal
Environment=WEBUI_PORT=9428

[Install]
WantedBy=default.target

vlogs.network

# vlogs.network — internal network for VictoriaLogs stack containers
# DNS enabled for container-name resolution (victorialogs, vlogs-mcp).

[Network]
Driver=bridge
Internal=false

Container Images

Image Reference
docker.io/victoriametrics/victoria-logs:v1.24.0-victorialogs
ghcr.io/victoriametrics/mcp-victorialogs:v1.9.0

License

Apache-2.0