]> Frank Brehm's Git Trees - config/sarah/etc.git/commitdiff
saving uncommitted changes in /etc prior to apt run
authorFrank Brehm <frank@brehm-online.com>
Wed, 19 Apr 2017 19:31:29 +0000 (21:31 +0200)
committerFrank Brehm <root@sarah.uhu-banane.de>
Wed, 19 Apr 2017 19:31:29 +0000 (21:31 +0200)
.etckeeper
cron.daily/00logwatch
logwatch/conf/logwatch.conf [new file with mode: 0644]

index baf6dc6df2117dbecf9f53aefd53f2464d2f2474..961a00c7bbaef39cc1b4bd50fbb19979cb1b9788 100755 (executable)
@@ -735,6 +735,7 @@ maybe chmod 0644 'logwatch/conf/logfiles/fail2ban.conf'
 maybe chmod 0644 'logwatch/conf/logfiles/maillog.conf'
 maybe chmod 0644 'logwatch/conf/logfiles/secure.conf'
 maybe chmod 0644 'logwatch/conf/logfiles/syslog.conf'
+maybe chmod 0644 'logwatch/conf/logwatch.conf'
 maybe chmod 0755 'logwatch/conf/services'
 maybe chmod 0755 'logwatch/scripts'
 maybe chmod 0755 'logwatch/scripts/services'
index ddf11fde7b9f57caf9700d319bfe5e41d604f203..06edf2f6aa65f59569e6608c281926496eeba18e 100755 (executable)
@@ -4,7 +4,7 @@
 test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
 
 #execute
-/usr/sbin/logwatch --output mail
+/usr/sbin/logwatch --encode base64 --output mail
 
 #Note: It's possible to force the recipient in above command
 #Just pass --mailto address@a.com instead of --output mail
diff --git a/logwatch/conf/logwatch.conf b/logwatch/conf/logwatch.conf
new file mode 100644 (file)
index 0000000..b382226
--- /dev/null
@@ -0,0 +1,24 @@
+# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf)
+
+#Output/Format Options
+#By default Logwatch will print to stdout in text with no encoding.
+#To make email Default set Output = mail to save to file set Output = file
+Output = stdout
+#To make Html the default formatting Format = html
+Format = text
+#To make Base64 [aka uuencode] Encode = base64
+Encode = none
+
+# Default person to mail reports to.  Can be a local account or a
+# complete email address.  Variable Output should be set to mail, or
+# --output mail should be passed on command line to enable mail feature.
+MailTo = frank@brehm-online.com
+
+
+# The default detail level for the report.
+# This can either be Low, Med, High or a number.
+# Low = 0
+# Med = 5
+# High = 10
+Detail = High
+