Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Remote Syslog

Schemesrsyslog://
Cargo featureservice-rsyslog
Servicehttps://tools.ietf.org/html/rfc5424
Body formatstext (first is the default)
Attachmentsno
Title length250 characters
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{host}
{schema}://{host}:{port}
{schema}://{host}/{facility}
{schema}://{host}:{port}/{facility}

{schema} is one of rsyslog://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{facility}Facilitychoiceyesuserone of kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, local0, local1, … (18 values)
{host}Hostnamestringyes
{port}Portint, 1 to 65535no514

Query parameters

ParameterMeaningTypeDefaultNotes
facilityFacilitychoicesets {facility}
logpidLog PIDboolyes

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

rsyslog://localhost
rsyslog://localhost/kern
rsyslog://localhost/kern/cron
rsyslog://localhost:9000/d?logpid=no
rsyslog://localhost/?facility=local5

Rejected URLs:

rsyslog://localhost/?facility=invalid

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'rsyslog://localhost'

Notes

Remote syslog over UDP (rsyslog://): syslog messages to a remote host.

Payload: <PRI>- {pid} {message} (or <PRI>- {message} without logpid).

Differences with Apprise

  • Apprise computes PRI as level + facility * 8 with already shifted facility constants (user.info becomes <70>), while mercurio sends the RFC 5424 value (<14>).