Thanks for the info!
I now got these settings in my ceph.conf
mon_cluster_log_file = /dev/null
mon_cluster_log_to_syslog = true
clog_to_syslog = true
log_to_syslog = true
err_to_syslog = true
clog_to_syslog_level = "warn"
mon_cluster_log_to_syslog_level = "warn"
I have the cluster log disabled and much less output (some options
might be unnecessary here).
I still can't find a way to take these out of the ceph-mon.{hostip}.log:
mon.172-23-45-21@0(leader).data_health(754) update_stats avail 92%
total 138319904 used 2795168 avail 128498408
And during daily scrub there pgmap log messages appears:
0 log [INF] : pgmap v428062: 3216 pgs: 3216 active+clean; 78649 MB
data, 154 GB used, 1429 GB / 1584 GB avail
but I suppose that will be fixed in future "mon_cluster_log_level"
option implementation.
Also, when ceph bench is running the stats are not filtered and still
appears in the mon log. That is not really important though.
BUSSY Jean-Daniel
Cloud Engineer
On Thu, Aug 8, 2013 at 12:12 AM, Sage Weil <[email protected]> wrote:
> On Wed, 7 Aug 2013, Jean-Daniel BUSSY wrote:
>> Hi all,
>>
>> We have log aggregation on our ceph cluster and verbosity is a problem
>> on the cluster log file at /etc/ceph/ceph.conf
>> I got advice from some nice folk on IRC and I tried to use syslog and
>> setup the log level to WARN but the INF logs are still pouring.
>> I confirmed settings are changed in the admin socked and got these:
>>
>> "clog_to_syslog_level": "warn",
>> "clog_to_syslog_facility": "daemon",
>> "mon_cluster_log_to_syslog": "true",
>> "mon_cluster_log_to_syslog_level": "warn",
>> "mon_cluster_log_to_syslog_facility": "daemon",
>> "mon_cluster_log_file": "\/var\/log\/ceph\/ceph.log",
>>
>> I guess I am missing some option flag or something. Any hint?
>
> Currently the ceph.log gets the log messages unconditionally. You can set
> mon_cluster_log_file to /dev/null so that only warn and higher goes to
> syslog?
>
> And we should add a mon_cluster_log_level option :)
>
> sage
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html