------------------------------------------------------------
revno: 1773
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Fri 2018-06-15 20:38:59 -0700
message:
  Updated contrib/mmdsr for security log.
modified:
  contrib/mmdsr


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'contrib/mmdsr'
--- contrib/mmdsr	2017-06-05 00:27:02 +0000
+++ contrib/mmdsr	2018-06-16 03:38:59 +0000
@@ -207,6 +207,11 @@
 #		Updated on: Sun Jun  4 17:12:54 PDT 2017
 #		Added -a to default (e)grep to account for logs that may
 #		have non-ascii and be seen as binary.
+#
+# 0.0.28	Update by Mark Sapiro <m...@msapiro.net>
+#		Updated on: Fri Jun 15 20:20:36 PDT 2018
+#		Added report of new security log.
+#		Augmented 0.0.24 to do <letters> as well as <digits>.
 
 ###############################################################################
 # Set up locations of standard commands, directories, etc....
@@ -275,7 +280,7 @@
 # Mailman Log files to check for errors.
 # No need to specify path, only log file name.
 ###############################################################################
-ERR_LOGS="error fromusenet locks mischief post qrunner smtp-failure vette"
+ERR_LOGS="error fromusenet locks mischief security post qrunner smtp-failure vette"
 
 ###############################################################################
 # Mailman Log files to summarize.
@@ -499,6 +504,11 @@
 	    echo "------------------------------" >> $TMP
 	    $EGREP -vi '(Login failure with private rosters|Unsub attempt of non-member|Reminder attempt of non-member)' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
 
+	elif [ "${LOG}" = "security" ] ; then
+
+	    echo "" >> $TMP
+	    $GREP 'Authorization failed' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+
 	elif [ "${LOG}" = "post" ] ; then
 
 	    $GREP -vi 'success' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
@@ -548,7 +558,7 @@
 	    echo "" >> $TMP
 	    echo "Banned Subscriptions" >> $TMP
 	    echo "------------------------------" >> $TMP
-	    $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+<digits>@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+	    $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+<digits>@/' -e 's/\+[a-z][a-z]*@/+<letters>@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
 
 	    echo "" >> $TMP
 	    echo "DMARC lookups" >> $TMP

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to