redirection of ceph logging

vtwin

Member
Jan 5, 2023
1
0
6
how can I redirect the ceph osd logs in /var/log/ceph (/var/log/ceph/ceph-osd.##.log, /var/log/ceph/ceph-volume.log an /var/log/ceph/ceph-volume-systemd.log) to syslog?

I added:

log_to_file = false
log_to_syslog = true
err_to_syslog = true
clog_to_syslog = true
mon_cluster_log_to_syslog = true

to [global] in /etc/pve/ceph.conf and restarted all the daemons.... but I am still getting output in those files.

I have a central syslog server which collects all the logs and performs different types of reports, I want to avoid logging to /var/log as much as possible.