aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2023-01-30 15:31:12 -0500
committerJake Hunsaker <jhunsake@redhat.com>2023-01-31 08:51:04 -0500
commitb047468d7a7cf20d1d176e69d7e9276a6bcf268e (patch)
tree0f64e5f2558aefa24cbeae17f97553ed7961a464
parent554c8be31a40ff034cc19d70589cfbc9ee8e9def (diff)
downloadsos-b047468d7a7cf20d1d176e69d7e9276a6bcf268e.tar.gz
[ceph_common] Update log patterns for multiple ceph versions
Updates the log patterns for `ceph_common` to handle Ceph versions that use or don't use fsid's as part of the logging paths. Related: #3122 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/ceph_common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sos/report/plugins/ceph_common.py b/sos/report/plugins/ceph_common.py
index c4af6fe3..105fd8c4 100644
--- a/sos/report/plugins/ceph_common.py
+++ b/sos/report/plugins/ceph_common.py
@@ -48,7 +48,7 @@ class Ceph_Common(Plugin, RedHatPlugin, UbuntuPlugin):
self.add_file_tags({
'.*/ceph.conf': 'ceph_conf',
- '/var/log/ceph/ceph.log.*': 'ceph_log',
+ '/var/log/ceph(.*)?/ceph.log.*': 'ceph_log',
})
if not all_logs:
@@ -57,8 +57,8 @@ class Ceph_Common(Plugin, RedHatPlugin, UbuntuPlugin):
self.add_copy_spec("/var/log/calamari",)
self.add_copy_spec([
- "/var/log/ceph/ceph.log",
- "/var/log/ceph/ceph.audit.log*",
+ "/var/log/ceph/**/ceph.log",
+ "/var/log/ceph/**/ceph.audit.log*",
"/var/log/calamari/*.log",
"/etc/ceph/",
"/etc/calamari/",