Syslog - default configuration changes

I guess it’s silly question but how can i change syslog configuration. I’ve tried changing /etc/rsyslog.conf but seems like all the changes are not being picked up after syslog’s restart. Any ideas how systlog configuration might be changed?

i finally came up with following solution:

``
#cloud-config
write_files:

  • path: "/etc/rsyslog.d/test.conf"
    permissions: "0755"
    owner: "root:root"
    content: |
    –SYSLOG–
    rancher:
    services:
    syslog:
    volumes:
    - /etc/rsyslog.d/:/etc/rsyslog.d:ro
    ``

doesn’t work though. Seems that container can’t see /etc/rsyslog.d/test.conf. Any ideas?

There’s some relevant discussion in this PR.

1 Like