Ingesting Logs (VictoriaLogs)

Log ingestion into VictoriaLogs on the ayedo SDP: automatic collection of container logs via stdout/stderr plus optional Vector and Syslog ingestion.

Ingesting Logs (VictoriaLogs)

VictoriaLogs is the central log store of the ayedo Software Delivery Platform (SDP). This page describes how application, cluster, and optional system logs reach VictoriaLogs.

For querying and analyzing logs via Grafana Explore (LogsQL), see Access & Observability.

For Application Developers: stdout and stderr Are Enough

When running applications on an SDP cluster, you do not need to configure your own log shipper or sidecar. The platform-side collector (Vector) automatically captures all output from your containers on stdout and stderr and forwards it along with Kubernetes metadata to VictoriaLogs.

Stream fields automatically attached to container logs:

Field Content
kubernetes.pod_namespace Pod namespace
kubernetes.pod_name Pod name
kubernetes.container_name Container name

Recommendations for Application Logs

  • Write all logs directly to stdout (regular events) and stderr (errors), not to local files inside the container.
  • Use structured JSON logging (for example, level, msg, service, trace_id) so fields can be filtered directly in VictoriaLogs.
  • Avoid multi-line stack traces without JSON encapsulation, as they will otherwise be indexed as separate log lines.
  • Never log passwords, tokens, secrets, or unnecessary personal data.

Overview of Ingestion Paths (Architecture)

Depending on how an SDP instance is configured, VictoriaLogs supports three ingestion paths:

Source Collector / Receiver Transport
Kubernetes containers (stdout/stderr) Vector in the cluster → VLAgent HTTP (/insert/elasticsearch)
Syslog (appliances, network devices, rsyslog) Native syslog receiver in VLSingle / VLInsert UDP port 514
Linux hosts (journald, auditd, Docker) Vector on the host (e.g., via ayedo/linux/hardening) HTTP (/insert/elasticsearch)
Kubernetes Pods ──► Vector ──► VLAgent ──► VLSingle / VLCluster
Remote Clusters (mode: agent) ──► VLAgent remoteWrite ──► central VictoriaLogs

rsyslog / Appliances ── UDP :514 ──► Service victoria-logs-syslog ──► VLSingle / VLInsert
Linux Hosts (journald/auditd) ──► Vector ── HTTP /insert/elasticsearch ──► VictoriaLogs

Self-Managed Configuration (Polycrate Blocks)

1. VictoriaLogs in the Cluster (single, cluster, or agent)

The ayedo/k8s/victoria-logs block (see polycrate hub inspect ayedo/k8s/victoria-logs) deploys Vector and VLAgent and supports three operating modes:

  • single: Local storage via VLSingle in the same cluster.
  • cluster: Distributed setup with VLInsert, VLSelect, and VLStorage.
  • agent: No local storage — collects logs on a workload or satellite cluster and forwards them via vlagent.remotewrite to a central VictoriaLogs instance.

Example for agent mode (satellite cluster → central VictoriaLogs):

blocks:
  - name: victoria-logs
    from: cargo.ayedo.cloud/ayedo/k8s/victoria-logs
    config:
      namespace: victoria-logs
      mode: agent
      vlagent:
        remotewrite:
          - url: "https://logs-user:<secret-from-secrets-poly>@logs.example.com/insert/elasticsearch"

Store credentials encrypted via Workspace Encryption rather than in plain text in workspace.poly.

2. Optional Syslog Ingestion (UDP 514)

In self-managed clusters, VLSingle (or VLInsert in cluster mode) can open a UDP syslog listener on port 514 — optionally exposed via a dedicated LoadBalancer VIP (MetalLB or Cilium LB-IPAM):

blocks:
  - name: victoria-logs
    from: cargo.ayedo.cloud/ayedo/k8s/victoria-logs
    config:
      namespace: victoria-logs
      mode: single
      vlsingle:
        syslog:
          enabled: true
          loadbalancer:
            enabled: true
            ip: "10.0.0.28"
        pvc:
          size: 100Gi
          class: longhorn

On a sending appliance or Linux host running rsyslog, point forwarding to the syslog VIP:

*.* @10.0.0.28:514

3. Linux Hosts via Vector (ayedo/linux/hardening)

On bare-metal or VM hosts (such as alongside an On-Premises k3s Cluster), the ayedo/linux/hardening block optionally uses Vector to collect journald, /var/log/audit/audit.log (auditd), and Docker logs and send them over HTTPS to VictoriaLogs.

Verifying Logs

Regardless of the ingestion path, all collected logs are available in Grafana under Explore (data source VictoriaLogs) for querying with LogsQL — for example, filtered by kubernetes.pod_namespace, source_type (auditd, journald), or free text.

Further Reading