Configure system logging via rsyslog (original) (raw)

View this page

Toggle table of contents sidebar

For a full list of keys, refer to the rsyslog moduleschema.

Example 1

1#cloud-config 2rsyslog: 3 remotes: {juju: 10.0.4.1, maas: 192.168.1.1} 4 service_reload_command: auto

Example 2

1#cloud-config 2rsyslog: 3 config_dir: /opt/etc/rsyslog.d 4 config_filename: 99-late-cloud-config.conf 5 configs: 6 - '. @@192.158.1.1' 7 - {content: '. @@192.0.2.1:10514', filename: 01-example.conf} 8 - {content: '. @@syslogd.example.com 9 10 '} 11 remotes: {juju: 10.0.4.1, maas: 192.168.1.1} 12 service_reload_command: [your, syslog, restart, command]

Example 3

Default (no) configuration with package installation on FreeBSD.

1#cloud-config 2rsyslog: 3 check_exe: rsyslogd 4 config_dir: /usr/local/etc/rsyslog.d 5 install_rsyslog: true 6 packages: [rsyslogd]