From d7d43fdfe54d11eee16a5a2d322e1219d401f942 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 22 Oct 2018 00:43:14 -0600 Subject: [PATCH] Logwatch logfile-group and service definiton file --- etc/logwatch/conf/logfiles/backup.conf | 14 ++++++++++++++ etc/logwatch/conf/services/backup.conf | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 etc/logwatch/conf/logfiles/backup.conf create mode 100644 etc/logwatch/conf/services/backup.conf diff --git a/etc/logwatch/conf/logfiles/backup.conf b/etc/logwatch/conf/logfiles/backup.conf new file mode 100644 index 0000000..24d3eeb --- /dev/null +++ b/etc/logwatch/conf/logfiles/backup.conf @@ -0,0 +1,14 @@ +# Location of your script's log file, -l parameter +LogFile = /path/to/your/backup.log + +# Format of logrotate archives for your script. Example assumes compression and +# extension preservation (this is optional, you can omit if not using +# compression/archives or if Logwatch has ARCHIVES=NO set) +Archive = /path/to/your/logfile.ext.?.gz + +# Apply the correct date/time filtering to match the format of the script's log +# We are using a custom pl script in /etc/logwatch/scripts/shared/ +# You don't need to change this unless you have altered the 'stamp' variable in +# the script in which case you will want to update the regex in the custom pl +# script below +*sqFullStampAnywhere \ No newline at end of file diff --git a/etc/logwatch/conf/services/backup.conf b/etc/logwatch/conf/services/backup.conf new file mode 100644 index 0000000..9f4e632 --- /dev/null +++ b/etc/logwatch/conf/services/backup.conf @@ -0,0 +1,9 @@ +# Name of the logfile group without any extension +LogFile = backup + +# Heading displayed on Logwatch's report for this service +Title = "System and Mailcow Backup" + +# Override the detail level for this service +# Remember the levels are: 0, 1-4, 5, 6+ +# Detail = 0 \ No newline at end of file