]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: Use generic cluster log level config 61069/head
authorPrashant D <pdhange@redhat.com>
Mon, 8 Aug 2022 14:55:23 +0000 (10:55 -0400)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 12 Dec 2024 17:10:10 +0000 (22:40 +0530)
commitb0e813887fe583cf17fe733cda37a41fef77bdcf
treeea14613e13fc35e3528be398c6dfb2e8edc07de6
parent8cdf8a659f8939f325d21f800012ea42a668b938
mon/LogMonitor: Use generic cluster log level config

We do not control the verbosity of the LogEntry
which is getting logged to stderr, graylog and
journald. This causes excessive flooding of logs
to /var/log, making a filesystem to fill up quickly.
Also we have different config variables namely
mon_cluster_log_file_level and mon_cluster_log_to_syslog_level
to control verbosity at cluster log file and
syslog level respectively. Add a generic cluster log
level config variable which controls cluster log
verbosity for all external entities.

Additionally, this patch addresses the regression of
`mon_cluster_log_file_level` option which doesn't take effect
because of code refactoring of LogMonitor::update_from_paxos
(commit : 7c84e06).

Fixes: https://tracker.ceph.com/issues/57061
Fixes: https://tracker.ceph.com/issues/57049
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit cb0d4a57bd25d32919f7ed44815b4301f41e9508)
PendingReleaseNotes
qa/standalone/ceph-helpers.sh
qa/standalone/mon/mon-cluster-log.sh [new file with mode: 0755]
src/common/options/mon.yaml.in
src/mon/LogMonitor.cc
src/mon/LogMonitor.h