aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-01-17 17:54:33 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-21 16:23:32 +0000
commit43d834bc9a57ec232bfb824defd5c5d4e9591096 (patch)
tree459df390d44a8c63308fae64e600b637c0d2b69b
parentac4247c3964653232474b9a4f40b7010b41480bc (diff)
downloadsos-43d834bc9a57ec232bfb824defd5c5d4e9591096.tar.gz
[mongodb] Add logs from /var/lib
Adds collection of the mongodb log under /var/lib/mongodb Related: #1525 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/mongodb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/mongodb.py b/sos/plugins/mongodb.py
index d8d8e5ff..56d04e4e 100644
--- a/sos/plugins/mongodb.py
+++ b/sos/plugins/mongodb.py
@@ -32,9 +32,10 @@ class MongoDb(Plugin, DebianPlugin, UbuntuPlugin):
self.var_puppet_gen + "/etc/",
self.var_puppet_gen + "/etc/systemd/system/mongod.service.d/",
"/var/log/mongodb/mongodb.log",
- "/var/log/containers/mongodb/mongodb.log"
+ "/var/log/containers/mongodb/mongodb.log",
+ "/var/lib/mongodb/mongodb.log*"
])
- self.add_cmd_output("du -s /var/lib/mongodb/")
+ self.add_cmd_output("du -sh /var/lib/mongodb/")
def postproc(self):
self.do_file_sub(