diff options
author | Prashant D <pdhange@redhat.com> | 2022-08-18 09:30:24 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-08-25 11:50:16 -0400 |
commit | 4b0fd0d2db8a5c48230f0d8fe4b8e93cc07c025b (patch) | |
tree | 4eb9bbf0940c4de85320ab5770515a894faf2103 | |
parent | eb00cae15f3b7f6fc3b03f91bf67f58a7ca3e870 (diff) | |
download | sos-4b0fd0d2db8a5c48230f0d8fe4b8e93cc07c025b.tar.gz |
[ceph_mon] Add ceph log CLI commands
Add following commands to ceph mon plugin:
- Collect ceph cluster log for 'cluster' channel
ceph log last 10000 debug cluster
- Collect ceph cluster log for 'audit' channel
ceph log last 10000 debug audit
NOTE: Here number 10000 is default value of mon_log_max
ceph config variable.
Signed-off-by: Prashant D <pdhange@redhat.com>
-rw-r--r-- | sos/report/plugins/ceph_mon.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/ceph_mon.py b/sos/report/plugins/ceph_mon.py index 905f68b1..61461add 100644 --- a/sos/report/plugins/ceph_mon.py +++ b/sos/report/plugins/ceph_mon.py @@ -58,7 +58,9 @@ class CephMON(Plugin, RedHatPlugin, UbuntuPlugin): "ceph mgr metadata", "ceph mgr module ls", "ceph mgr services", - "ceph mgr versions" + "ceph mgr versions", + "ceph log last 10000 debug cluster", + "ceph log last 10000 debug audit" ]) ceph_cmds = [ |