Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install and Use rsyslog

rsyslog collects system and application syslog messages. On a VPS it is the base layer before alerts or a SIEM.

Steps

  1. Install and start rsyslog:

    sudo apt update
    sudo apt install -y rsyslog
    sudo systemctl enable --now rsyslog
    systemctl status rsyslog --no-pager
  2. Add a simple rule to a dedicated file:

    echo 'local0.*    /var/log/xernode-local0.log' | sudo tee /etc/rsyslog.d/30-xernode.conf
    sudo systemctl restart rsyslog
  3. Emit a test message and read it:

    logger -p local0.info "xernode rsyslog ok"
    sudo tail -n 5 /var/log/xernode-local0.log
  4. Check the service journal if something fails:

    sudo journalctl -u rsyslog -n 50 --no-pager

Tips

  • Rotate the new file with logrotate so it cannot fill the disk.
  • For remote intake, open TCP/UDP 514 only behind a tight firewall ACL.

ext step

Clean logs on a VPS with headroom: Deploy your Cloud VPS.

Related guides