# VictoriaLogs Docker Setup: Collect Proxmox Logs with Syslog

Run VictoriaLogs in Docker, forward Proxmox logs with rsyslog, and search them in a browser. A simple homelab setup with seven-day retention.

Author: Ruhani Rabin
Canonical: https://rabin.blog/victorialogs-docker-proxmox-syslog/
Published: 2026-11-29T12:38:00.000Z

I started looking at centralized logs because my router had a setting to send logs to an IP address. That led to a useful question: **where should those logs go?**

I also wanted the logs from my Proxmox hosts in the same place. When something fails, having the messages together makes it easier to see what happened around that time. A [failed NFS or CIFS mount after boot](https://rabin.blog/retry-failed-nfs-cifs-mounts-systemd-timer/) is one example from my own setup.

I chose **VictoriaLogs**. It gives me a syslog receiver, storage, and a search page in one container. The first goal was simple: get logs arriving, then make them easy to find.

## TL;DR

* Run VictoriaLogs on an always-on Docker host or VM.
* Store its data in a Docker volume and start with seven-day retention.
* Forward Proxmox logs over TCP using **rsyslog**.
* Send a test message, then check it in VictoriaLogs with a recent time range.

## Why I chose VictoriaLogs

The [single-node setup](https://docs.victoriametrics.com/victorialogs/quickstart/) fits this job well. Its built-in web interface lets you search logs as soon as they arrive. That gave me a small first deployment.

It also [accepts syslog directly](https://docs.victoriametrics.com/victorialogs/data-ingestion/syslog/), including the older BSD format and the newer RFC5424 format. That gives routers, NAS devices, and Linux hosts a common destination.

For my Proxmox hosts, rsyslog handles forwarding. VictoriaLogs extracts fields such as the hostname, application name, and severity from each message. Those fields make searching across machines useful.

I already manage my Docker hosts through [Komodo and Git-backed Compose stacks](https://rabin.blog/manage-multiple-docker-hosts-with-komodo/), so a Compose service fits that workflow.

The small number of components was the main reason for my choice. Log volume and retention affect resource use. Large searches add work too. Start small and watch disk usage as your sources grow.

## What you need

You need a Linux machine with Docker Engine and the Docker Compose plugin installed, plus a Proxmox host on a LAN that can connect to it. The Docker machine can be a VM. **Pick one that stays on when you need to receive logs.**

This guide uses `192.168.1.50` as the **example Docker host IP**. Replace it with your own address throughout. Reserve that address in DHCP or configure a suitable static address.

Run the commands below in a root shell on the relevant machine. On a Linux host using sudo, `sudo -i` opens one. Keep track of which machine you are connected to: the container runs on the Docker host, and rsyslog runs on Proxmox.

I used VictoriaLogs `v1.55.0` and Debian 13-based Proxmox hosts for this setup. The image is pinned so the example has a clear starting version.

## Step 1: Create the Docker Compose file

On the **Docker host**, create a folder for the stack:

```sh
mkdir -p /opt/victorialogs
cd /opt/victorialogs
nano compose.yaml
```

Paste this complete configuration into `compose.yaml`. Replace the example IP in all three port mappings. Set the timezone to match devices that send older syslog messages without a timezone.

/opt/victorialogs/compose.yaml

```yaml
services:
  victorialogs:
    image: victoriametrics/victoria-logs:v1.55.0
    restart: unless-stopped
    command:
      - -storageDataPath=/vlogs
      - -retentionPeriod=7d
      - -syslog.listenAddr.tcp=:1514
      - -syslog.listenAddr.udp=:1514
      - -syslog.timezone=Asia/Kuala_Lumpur
    ports:
      - "192.168.1.50:9428:9428"
      - "192.168.1.50:514:1514/tcp"
      - "192.168.1.50:514:1514/udp"
    volumes:
      - victorialogs_data:/vlogs
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"


volumes:
  victorialogs_data:
```

Port **9428** serves the search interface and API. Port **514** receives syslog on the Docker host and maps to port **1514** inside the container. Both TCP and UDP are available, and the Proxmox configuration below uses TCP.

The named volume keeps the collected logs when the container is recreated. Seven-day retention removes older entries automatically. It is a time limit, so keep an eye on free disk space even during those seven days.

This example uses plain syslog over a trusted LAN. Keep port 514 restricted to your log sources and port 9428 restricted to trusted users. The web interface and API have no authentication in this configuration. Restrict access to your LAN and check firewall rules that apply to Docker-published ports.

## Step 2: Start VictoriaLogs

Still in `/opt/victorialogs`, check the configuration and start the container:

```sh
docker compose config --quiet
docker compose up -d
docker compose ps
```

The service should show as running. If it exits, check its startup messages:

```sh
docker compose logs --tail=50 victorialogs
```

Open this address from your LAN, using your Docker host IP:

```text
http://192.168.1.50:9428/select/vmui/
```

You should see the VictoriaLogs query page. An empty result is expected at this point.

**Note**: If Docker reports that a port is already allocated, check the host’s existing listeners before changing them. Another syslog service may already use port 514.

## Step 3: Install rsyslog on Proxmox

Now connect to the **Proxmox host** as root:

```sh
apt update
apt install --no-install-recommends rsyslog
```

On my two Proxmox hosts, journald was already keeping local logs, and its `ForwardToSyslog` setting was enabled. Installing rsyslog gave those messages a forwarding service.

You can inspect the journal settings with:

```sh
systemd-analyze cat-config systemd/journald.conf
```

Look for an active `ForwardToSyslog=yes` setting. If your effective configuration disables it, or leaves it unset, create `/etc/systemd/journald.conf.d/99-victorialogs-forward.conf`:

```sh
mkdir -p /etc/systemd/journald.conf.d
nano /etc/systemd/journald.conf.d/99-victorialogs-forward.conf
```

Put these two lines in that new file:

/etc/systemd/journald.conf.d/99-victorialogs-forward.conf

```ini
[Journal]
ForwardToSyslog=yes
```

Then apply the journal setting:

```sh
systemctl restart systemd-journald
```

Keep existing logging configuration in place. If the host already forwards logs elsewhere, review its rules before adding another destination.

## Step 4: Add the forwarding rule

On **Proxmox**, create this new file:

```sh
nano /etc/rsyslog.d/10-victorialogs.conf
```

Paste the following rule and replace `192.168.1.50` with the Docker host IP:

/etc/rsyslog.d/10-victorialogs.conf

```text
action(
  name="victorialogs_forward"
  type="omfwd"
  target="192.168.1.50"
  port="514"
  protocol="tcp"
  template="RSYSLOG_SyslogProtocol23Format"
  action.resumeRetryCount="-1"
  action.resumeInterval="10"
  queue.type="LinkedList"
  queue.filename="victorialogs-forward"
  queue.size="5000"
  queue.highWatermark="3000"
  queue.lowWatermark="1000"
  queue.maxDiskSpace="100m"
  queue.maxFileSize="10m"
  queue.saveOnShutdown="on"
  queue.timeoutEnqueue="0"
)
```

This forwards a copy of the messages using RFC5424 format and keeps local processing in place. The `10-` filename puts it ahead of rules such as Proxmox’s FRR configuration, which can stop processing selected messages.

The [disk-assisted queue](https://docs.rsyslog.com/doc/tutorials/reliable_forwarding.html) gives forwarding some room during a collector interruption. This uses Debian’s default rsyslog spool directory, `/var/spool/rsyslog`, with a 100 MB disk allowance. A full queue can drop remote copies, keeping local logging responsive. Messages held in memory are saved during an orderly rsyslog shutdown.

Check the configuration before restarting the service:

```sh
rsyslogd -N1
```

When validation succeeds, start using it:

```sh
systemctl enable rsyslog
systemctl restart rsyslog
systemctl is-active rsyslog
```

The last command should return `active`. A host reboot is unnecessary.

## Step 5: Send a test message

On **Proxmox**, send a message through the local logging path:

```sh
logger -t victorialogs-test 'PROXMOX_LOG_TEST'
```

In VictoriaLogs, select **Last 1 hour** in the time picker and run:

```text
_msg:PROXMOX_LOG_TEST
```

Expand the result. You should see the test message details. Including the Proxmox hostname, and `victorialogs-test` as the application name.

That checks the route from the host’s local logger through rsyslog to VictoriaLogs. In my setup, I also saw real SSH and systemd messages arriving from both Proxmox hosts.

The time picker caught me once. Logs were arriving, but the page was still showing an earlier time range. Selecting a recent relative range made them appear.

## Step 6: Find logs from one host

Use the hostname shown in the expanded test record. For an example host named `proxmox-01`, search:

```text
hostname:="proxmox-01"
```

To narrow that to one application:

```text
hostname:="proxmox-01" app_name:="postfix"
```

You can also search the message text directly:

```text
hostname:="proxmox-01" _msg:timeout
```

Repeat the rsyslog setup on your second Proxmox host. Each host should have its own hostname so you can tell the sources apart.

This collects logs from the Proxmox hosts themselves. To include application logs inside an LXC or VM, configure forwarding inside that guest as well.

## If the test message is missing

Start with the time picker, then check rsyslog on Proxmox:

```sh
systemctl status rsyslog --no-pager
journalctl -u rsyslog -n 30 --no-pager
```

Confirm the forwarding target is the Docker host’s IP. Check that TCP port 514 is allowed between the machines and that the VictoriaLogs container is running. If rsyslog reports a configuration error, correct it and rerun `rsyslogd -N1` before restarting. ![victorialogs-gui-live-monitoring-logs](https://rabin.blog/_astro/victorialogs-gui-live-monitoring-logs.Cj4KpOil_mVDvo.webp)

## Keep the first setup manageable

Start with one host and seven days of logs. Add sources once the first one is searchable. Watch disk growth for a few days before extending retention.

To stop forwarding from a Proxmox host, move `/etc/rsyslog.d/10-victorialogs.conf` out of that directory, validate the remaining configuration, and restart rsyslog. Local logging continues.

On the Docker host, `docker compose down` stops the stack and keeps its named volume. Adding `--volumes` removes that stored data, so use it only when you intend to delete the logs.

With log collection working, **Alertmanager is the logical next step for notifications**.
