Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuring Remote Log Forwarding (Syslog)

How to configure VergeOS to forward system logs to a remote syslog server for centralized log management, archival, and compliance.

VergeOS can be configured to forward logs to a remote Syslog server, an important capability for organizations leveraging log aggregation for centralized management, log archival, and compliance.

Prerequisites

  • Network connectivity between VergeOS and the remote syslog server

  • Appropriate firewall rules to allow syslog traffic (typically port 514)

  • Access to VergeOS System Settings

Configuration Steps

To configure log forwarding to a remote syslog server:

1. Navigate to Advanced Settings

Navigate to System > Settings > Advanced Settings.

2. Configure the Remote Syslog Server

  1. Under the "Setting" column heading, type syslog and press Enter to search

  2. Select and edit Remote syslog server (tcp: @@name/ip:port, udp: @name/ip:port)

  3. Configure this setting according to the syntax expected by your remote server:

Server Configuration Examples

  • For TCP: @@10.10.10.10:514

  • For UDP: @10.10.10.10:514

Choosing TCP or UDP

  • TCP (@@) provides guaranteed delivery; use it for audit and compliance logging.

  • UDP (@) is fire-and-forget: lower overhead, but messages can drop under load.

Collector Port

Listening on port 514 requires root privileges on the collector. Many collectors run unprivileged (for example, in containers) and listen on port 1514 instead. Enter the port your collector listens on.

  1. Click Submit at the bottom of the page to save

3. Configure the Format Template

  1. Search for syslog again in the settings

  2. Select and edit Template to define for syslog server (See rsyslog for format)

  3. Enter a syslog template format that is compatible with your remote syslog server

Template Example

Replace your-hostname-here with your actual hostname, or leave as .HOSTNAME_HERE to use the default system hostname.

Forwarding from Multiple VergeOS Systems

%HOSTNAME% resolves to the bare node name (node1, node2), which is ambiguous when several VergeOS systems forward to the same collector. Common hostname patterns:

Pattern
Example output
Use

%HOSTNAME%

node1

A single system

mycluster-%HOSTNAME%

mycluster-node1

A prefix per system; recommended for multiple systems

%HOSTNAME%.mycluster.example.com

node1.mycluster.example.com

FQDN style

  1. Click Submit at the bottom of the page to save the format

Collector Notes

The RFC 5424 template above works with common collectors:

Collector
Configuration notes

Graylog

Use a Syslog TCP or Syslog UDP input.

Loki

Use a Promtail syslog scrape job; Promtail requires strict RFC 5424 (the literal 1 version).

Splunk

Use a TCP or UDP data input, or Splunk Connect for Syslog.

Elasticsearch

Ingest through Logstash with the syslog input plugin.

rsyslog relay

Use a standard imtcp or imudp listener.

Additional Resources

For more information on syslog templates and formatting options, visit the Rsyslog Documentation.

Verification

After you save the configuration, VergeOS begins forwarding logs to the specified server. Check the collector to confirm VergeOS logs arrive.

If logs do not arrive:

  1. On the collector host, capture traffic on the configured syslog port to confirm packets arrive (replace 514 with the port you configured):

  2. Inspect the captured messages to verify the wire format. An RFC 5424 message starts with <PRI>1 (for example, <30>1 2026-04-15T...); a version of 0 means the template still uses %PROTOCOL-VERSION% — see the template warning above.

  3. Make sure firewall rules between VergeOS and the collector allow the configured port and protocol.

Last updated

Was this helpful?