Logging to syslog
I would like to setup remote syslog on my OSD's so i can run with the highest debug level on all my nodes.
Right now my free diskspace is lacking at my OSD's (most goes to OSD data) so my logging partition is filling up pretty fast.
A remote syslog is also pretty usefull when searching through logfiles of multiple nodes at the same time.
Instead of syslog, piping all the logs is fine too, we could use "logger" to sent it to syslog.
#2 Updated by Sage Weil over 10 years ago
Thought about this some. A few things:
the dout() macros just need to use a temp stringstream (not *_dout), then send the full string to the log destination. when logging is enabled, at least.
we may want ot add pr_info, pr_warning, pr_error, type macros for other logging levels, (dout == pr_debug). and clean up the code appropriately (e.g., most dout(0) is basically pr_info.
May also make sense to wrap the logclient stuff in a similar global interface in common/log.h, and allow it to use syslog too (instead of current log forwarding to monitors).