Changes

Jump to navigation Jump to search
49 bytes added ,  14:29, 1 March 2017
restrict qpsmtpd log search to @* and "current" and add sqpsmtpd
Line 277: Line 277:  
  <nowiki>export LC_ALL=C;  \
 
  <nowiki>export LC_ALL=C;  \
 
mydate=$(date "+%Y-%m-%d")\|$(date -d "yesterday" "+%Y-%m-%d"); \
 
mydate=$(date "+%Y-%m-%d")\|$(date -d "yesterday" "+%Y-%m-%d"); \
cat -v $(find /var/log/qpsmtpd -ctime -1 -type f) |tai64nlocal |egrep $mydate | grep -v ^# | \
+
cat -v $(find /var/log/qpsmtpd /var/log/sqpsmtpd/ -ctime -1 -type f -name "@*" -o -name current) \
 +
|tai64nlocal |egrep $mydate | grep -v ^# | \
 
awk -v date="$mydate" -v tots="                                  {{Total}}          " -F"[\t]" ' \
 
awk -v date="$mydate" -v tots="                                  {{Total}}          " -F"[\t]" ' \
 
/logterse plugin/ {split($4,ss,"."); ssn=0; for (i in ss) { ssn++}; \
 
/logterse plugin/ {split($4,ss,"."); ssn=0; for (i in ss) { ssn++}; \

Navigation menu