Run the syslog server as a VMware VM (Workstation or ESXi)
When to use this: You have VMware (Workstation, Fusion or ESXi) and want a dedicated, snapshot-friendly syslog VM on the LAN.
Before you start
Steps
-
Create the VM with modest resources
Guest OS Ubuntu 64-bit. For rsyslog: 1 to 2 vCPU, 2 GB RAM, 40 GB or more disk (size it for retention). For Graylog or Wazuh use more RAM and CPU, per the product's requirements. Thin-provisioned disk is fine for a lab; use thick or a separate data disk in production.
-
Attach the network so the firewall can reach it
Workstation/Fusion: choose Bridged so the VM gets an address on your LAN (NAT would hide it from the firewall). ESXi: connect the VM to the port group or VLAN that the firewall's management or log interface can route to.
-
Install Ubuntu Server and open-vm-tools
terminalsudo apt update sudo apt install -y open-vm-toolsGives clean shutdowns, time sync with the host (if configured) and better integration.
-
Give it a static IP with netplan
terminalsudo nano /etc/netplan/50-cloud-init.yamlExample content (adjust the interface name, shown with
ip a, oftenens33orens160): setdhcp4: false,addresses: [192.168.1.10/24], a default route via your gateway and DNS servers. Keep the YAML spacing exact.Use
sudo netplan tryto test: it rolls back automatically if you lose connectivity. -
Apply and verify
terminalsudo netplan try ip -4 aPress Enter to accept the change when asked. Confirm the address.
-
Install the syslog software and take a snapshot
Follow the Ubuntu rsyslog scenario. When it works, take a VM snapshot named 'clean syslog working' so you can roll back after experiments.
How to verify it worked
- The VM keeps its IP after reboot, and the firewall can ping it.
- Logs from the real device appear in the VM.
How to undo it
Revert to the snapshot, or delete the VM and its disk to remove everything.
Common errors and fixes
timedatectl, chrony) rather than relying only on host sync. /var/log/remote, and apply retention (see the sizing scenario). Q&A
Bridged or NAT networking?
Bridged, so the VM is a normal device on your LAN. NAT puts it behind the host and other devices cannot reach it without port forwarding.
Should I snapshot a log server?
Snapshots are good before changes. Do not keep them for long on a busy VM: they grow and slow the VM. Back up the log data itself separately.