Project

General

Profile

Feature #245

Logging to syslog

Added by Wido den Hollander over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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.

History

#1 Updated by Sage Weil over 10 years ago

  • Tracker changed from Bug to Feature

#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).

#3 Updated by Sage Weil over 10 years ago

  • Target version set to v0.22

#4 Updated by Sage Weil over 10 years ago

  • Target version changed from v0.22 to v0.23

#5 Updated by Sage Weil about 10 years ago

  • Target version changed from v0.23 to 12

#6 Updated by Sage Weil about 10 years ago

  • Assignee set to Colin McCabe

#7 Updated by Sage Weil about 10 years ago

  • Estimated time set to 5.00 h
  • Source set to 3

#8 Updated by Sage Weil about 10 years ago

  • translation missing: en.field_position deleted (307)
  • translation missing: en.field_position set to 301

#9 Updated by Sage Weil about 10 years ago

  • Target version changed from 12 to v0.25

#10 Updated by Colin McCabe about 10 years ago

  • Status changed from New to 7

#11 Updated by Sage Weil about 10 years ago

  • Status changed from 7 to Resolved

Also available in: Atom PDF