New release logging suggestions

Matt Doherty Matthew_doherty at DATAWATCH.COM
Tue Sep 10 14:06:20 IST 2002


Thanks!

Matt Doherty
IT Dept
Datawatch Corp

>>In a world without walls or fences, who needs Windows and Gates?<<

  -----Original Message-----
  From: Jonas Bardino [mailto:jonas at ODENSE.KOLLEGIENET.DK]
  Sent: Monday, September 09, 2002 6:13 PM
  To: MAILSCANNER at JISCMAIL.AC.UK
  Subject: Re: New release logging suggestions


  Matt Doherty wrote:
  > I would like to see some differant text in the log per email virus
  > caught.. I grep the maillog to see how many viruses caught so far that
  > week. For instance, I currently tried 'tail -2000 /var/log/maillog |
grep >>>Virus' of course the ">" symbols something that messes grep up and
wont work. The only string
  > that works best is just use the word Virus ( tail -2000 /var/log/maillog
  > | grep Virus ) Only thing is, it shows the mailscanner restarting every
  > four hours lines as well as the viruses caught. I cant think of anything
  > good but maybe some weird character that is never seen in the maillog
  > such as a & or pipe symbol? Just something that grep could sniff out
  > easily ONLY for caught viruses. Or do you have a better solution? The
  > Email ID to go along with it as well would be nice. for ones that were
  > scanned and ones that were found to be infected.
  > Hope that is a ok suggestion..
  > Oh well Im still a newbie anyways 8-)
  >
  >
  > Matt Doherty

  Hi Matt
  Are you looking for something like:
  'tail -2000 /var/log/maillog | grep ">>>Virus"' ?
  (if you enclose the expression in doublequotes the ">"'s won't be
  treated as redirects).

  Regards, Jonas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20020910/98fa3602/attachment.html


More information about the MailScanner mailing list