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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!