Name

rsyslogd

Synopsis

rsyslogd [options]

System administration command. rsyslogd provides local and remote logging functions. It is based on sysklogd and on some systems replaces that program. It adds support for logging over TCP, SSL, TLS, logging to databases and more. By default rsyslogd is command-line compatible with sysklogd and can be used as a drop-in replacement. In native mode, some of the old command line options have been moved to the configuration file. rsyslogd will log warnings for these deprecated commands. Its compatibility mode can be changed with the -c3 option.

rsyslogd logs system messages into a set of files described by the configuration file /etc/rsyslog.conf. Each message is one line. A message can contain a priority code, marked by a number in angle brackets at the beginning of the line.

Options

−4

Listen on IPV4 addresses only.

−6

Listen on IPV6 addresses only.

-A

If there are multiple paths to a UDP target, send to all paths.

-cmode

Set compatibility mode. Values for mode are 0, for sysklogd and 3 to enable native rsyslogd options. The default value is 0 though this also generates a warning that you are not using native mode.

-d

Turn on debugging. Don’t fork.

-f configfile

Specify alternate configuration file.

-i pidfile

Specify alternate pid file.

-l hostlist

Specify hostnames that should be logged with just the hostname, not the fully qualified domain name (fqdn). Multiple hosts should be separated by a colon (:).

-n

Avoid auto-backgrounding. This is needed when starting ...

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.