Project

General

Profile

Actions

Feature #245

closed

Logging to syslog

Added by Wido den Hollander almost 14 years ago. Updated over 13 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.

Actions #1

Updated by Sage Weil almost 14 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Sage Weil over 13 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).

Actions #3

Updated by Sage Weil over 13 years ago

  • Target version set to v0.22
Actions #4

Updated by Sage Weil over 13 years ago

  • Target version changed from v0.22 to v0.23
Actions #5

Updated by Sage Weil over 13 years ago

  • Target version changed from v0.23 to 12
Actions #6

Updated by Sage Weil over 13 years ago

  • Assignee set to Colin McCabe
Actions #7

Updated by Sage Weil over 13 years ago

  • Estimated time set to 5:00 h
  • Source set to 3
Actions #8

Updated by Sage Weil over 13 years ago

  • Translation missing: en.field_position deleted (307)
  • Translation missing: en.field_position set to 301
Actions #9

Updated by Sage Weil over 13 years ago

  • Target version changed from 12 to v0.25
Actions #10

Updated by Colin McCabe over 13 years ago

  • Status changed from New to 7
Actions #11

Updated by Sage Weil over 13 years ago

  • Status changed from 7 to Resolved
Actions

Also available in: Atom PDF