Sendmail Log Search Engine
mailscanner-user
mailscanner-user at NELAND.DK
Thu Jun 24 06:37:35 IST 2004
Rose, Bobby <brose at MED.WAYNE.EDU> wrote:
> I'm curious if anyone knows of a pseudo sendmail log search engine
> type app. There are lots of log analyzers but what I'm looking for
> is a better way to search the logs for particular messages.
> Currently, it's a case of grepping for the sender, getting the
> message ID's and grepping each one until I found the one I'm looking
> for to see all the log entries for that message ID. It would be
> easier and quicker with a gui where you enter the address, get a list
> of hyper-linked messages Ids that when clicked give the details.
>
> I don't have a problem continuing to use grep techniques but it would
> be nice if I could just dump this task off to our helpdesk people.
>
While not for the helpdesk, a oneliner is:
awk '/whattolookfor/ {print $6}' mail.log|grep -f - mail.log
awk outputs the msgid, and grep -f - reads the msgid from the file "-", i.e.
stdin. and uses it as pattern.
Leif
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list