Feature #245
closedLogging to syslog
0%
Description
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.
Updated by Sage Weil almost 14 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).
Updated by Sage Weil over 13 years ago
- Target version changed from v0.22 to v0.23
Updated by Sage Weil over 13 years ago
- Estimated time set to 5:00 h
- Source set to 3
Updated by Sage Weil over 13 years ago
- Translation missing: en.field_position deleted (
307) - Translation missing: en.field_position set to 301
Updated by Sage Weil over 13 years ago
- Status changed from 7 to Resolved
merged in 239b7677e7a9df86d35cbfb25226c3f1a06771c5