Skip to content

Rsyslogd

services.rsyslogd.defaultConfig

The default {file}syslog.conf file configures a fairly standard setup of log files, which can be extended by means of {var}extraConfig.

Type: strings concatenated with "\n"

Default

`#!nix '' # "local1" is used for dhcpd messages. local1.* -/var/log/dhcpd

mail.* -/var/log/mail

.=warning;.=err -/var/log/warn *.crit /var/log/warn

.;mail.none;local1.none -/var/log/messages ''`

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/rsyslogd.nix

services.rsyslogd.enable

Whether to enable syslogd. Note that systemd also logs syslog messages, so you normally don't need to run syslogd.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/rsyslogd.nix

services.rsyslogd.extraConfig

Additional text appended to {file}syslog.conf, i.e. the contents of {var}defaultConfig.

Type: strings concatenated with "\n"

Default

""

Example

"news.* -/var/log/news"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/rsyslogd.nix

services.rsyslogd.extraParams

Additional parameters passed to {command}rsyslogd.

Type: list of string

Default

[ ]

Example

["-m 0"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/rsyslogd.nix