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 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 (opens in a new tab) 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 (opens in a new tab), 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, 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:
mkdir -p /opt/victorialogscd /opt/victorialogsnano compose.yamlPaste 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.
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:
docker compose config --quietdocker compose up -ddocker compose psThe service should show as running. If it exits, check its startup messages:
docker compose logs --tail=50 victorialogsOpen this address from your LAN, using your Docker host IP:
http://192.168.1.50:9428/select/vmui/You should see the VictoriaLogs query page. An empty result is expected at this point.
Step 3: Install rsyslog on Proxmox
Now connect to the Proxmox host as root:
apt updateapt install --no-install-recommends rsyslogOn 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:
systemd-analyze cat-config systemd/journald.confLook 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:
mkdir -p /etc/systemd/journald.conf.dnano /etc/systemd/journald.conf.d/99-victorialogs-forward.confPut these two lines in that new file:
[Journal]ForwardToSyslog=yesThen apply the journal setting:
systemctl restart systemd-journaldKeep 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:
nano /etc/rsyslog.d/10-victorialogs.confPaste the following rule and replace 192.168.1.50 with the Docker host IP:
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 (opens in a new tab) 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:
rsyslogd -N1When validation succeeds, start using it:
systemctl enable rsyslogsystemctl restart rsyslogsystemctl is-active rsyslogThe 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:
logger -t victorialogs-test 'PROXMOX_LOG_TEST'In VictoriaLogs, select Last 1 hour in the time picker and run:
_msg:PROXMOX_LOG_TESTExpand 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:
hostname:="proxmox-01"To narrow that to one application:
hostname:="proxmox-01" app_name:="postfix"You can also search the message text directly:
hostname:="proxmox-01" _msg:timeoutRepeat 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:
systemctl status rsyslog --no-pagerjournalctl -u rsyslog -n 30 --no-pagerConfirm 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.

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.
Comments
Loading comments…