]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: Use generic cluster log level config 47502/head
authorPrashant D <pdhange@redhat.com>
Mon, 8 Aug 2022 14:55:23 +0000 (10:55 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 13 Mar 2024 17:10:54 +0000 (13:10 -0400)
commitcb0d4a57bd25d32919f7ed44815b4301f41e9508
tree93c6eb2515d0620f208370fce4c4f989ea5df0f5
parent6185d084fab59d208d3bfb1fbf5565b52edd85a6
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>
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