Re: Ceph logging level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sage,

Thanks for your answer.

> LOG_USER is currently hard-coded.  It would be pretty easy to make this
> configurable... LOG_DAEMON may also be a better default choice.

LOG_DAEMON will be a better choice and even better using a different
facility to isolate ceph logs from other services that log into
LOG_DAEMON. Using LOCAL0, LOCAL1 and so on for example.

> We can just add a min log level configurable.

Please :-)

New config options like:

* log_facility
* log_level

will be a good starting point I guess.

Thanks!
--
Regards,
Sébastien Han.


On Wed, Jan 2, 2013 at 5:28 PM, Sage Weil <sage@xxxxxxxxxxx> wrote:
> On Wed, 2 Jan 2013, S?bastien Han wrote:
>> Hi all,
>>
>> I've been struggling with Ceph logging.
>>
>> As far as I saw we can log to syslog but we can't specify any
>> facility. So my question is: which facility does ceph use by default?
>
> LOG_USER is currently hard-coded.  It would be pretty easy to make this
> configurable... LOG_DAEMON may also be a better default choice.
>
>> Second thing is, I'm sick of all those "log [INF]" messages from the
>> ceph-mon, like:
>>
>> Jan  2 13:27:07 ceph02 ceph-mon: 2013-01-02 13:27:07.749511
>> 7f227b2fa700  0 log [INF] : pgmap v74529: 80 pgs: 80 active+clean;
>> 9753 MB data, 17012 MB used, 383 GB / 399 GB avail
>>
>> Is there a way to disable them? Which level is that? INFO? DEBUG?
>>
>> Ideally I'd like to disable all INFO logs, I only want to see ERROR logs.
>
> Not currently.  This would be very simple to add.  See mon/LogMonitor.cc:
>
>       if (g_conf->mon_cluster_log_to_syslog) {
>         syslog(clog_type_to_syslog_prio(le.type) | LOG_USER, "%s", s.c_str());
>       }
>
> We can just add a min log level configurable.
>
> Opened #3704.
>
> sage
>
>
>
>>
>> Thanks you in advance :-)
>>
>> --
>> Regards,
>> S?bastien Han.
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux