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

Syslog

Schemessyslog://
Cargo featureservice-syslog
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}://
{schema}://{facility}

{schema} is one of syslog://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{facility}Facilitychoicenouserone of kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, local0, local1, … (18 values)

Query parameters

ParameterMeaningTypeDefaultNotes
facilityFacilitychoicesets {facility}
logperrorLog to STDERRboolno
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):

syslog://
syslog://:@/
syslog://_/cron
syslog://kern?facility=d
syslog://_/?facility=local5
syslog://?logpid=no&logperror=yes

Rejected URLs:

syslog://_/?facility=invalid
syslog://notafacility

Send one from the command line:

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

Notes

Local syslog (syslog://): writes messages to the local syslog.

Writes the BSD-style datagram libc syslog would (<PRI>Mmm dd hh:mm:ss ident[pid]: msg) to the local syslog socket (/var/run/syslog on macOS, /dev/log elsewhere).

Differences with Apprise

  • logperror copies the line to stderr like LOG_PERROR.