Skip to content

Commit

Permalink
[logs] Add CosLogs plugin for Container-Optimized OS
Browse files Browse the repository at this point in the history
Add a COS specific plugin to retrieve all logs from /var/log/

Signed-off-by: Xuewei Zhang <[email protected]>
  • Loading branch information
Xuewei Zhang committed Sep 7, 2018
1 parent 356fa76 commit d98601b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sos/plugins/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import os
import glob
from sos.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)
CosPlugin)


class Logs(Plugin, CosPlugin):
class Logs(Plugin):
"""System logs"""

plugin_name = "logs"
Expand Down Expand Up @@ -122,4 +122,11 @@ def setup(self):
else:
self.add_copy_spec("/var/log/")


class CosLogs(Logs, CosPlugin):
def setup(self):
super(CosLogs, self).setup()
self.add_copy_spec("/var/log/")


# vim: set et ts=4 sw=4 :

0 comments on commit d98601b

Please sign in to comment.