maillog
Louis Spironello
lspironello at hotmail.com
Tue Mar 29 09:33:50 EST 2005
>From: Justin Bennett <Justin.Bennett at dynabrade.com>
>Reply-To: nflug at nflug.org
>To: nflug at nflug.org
>Subject: maillog
>Date: Tue, 29 Mar 2005 08:34:57 -0500
>
>I'm looking for a utility to parse /var/log/maillog and give me info for
>each message sent. for example who sent what to whom on what date. As it
>is usually there is one line for receiving and one line for sending. I'd
>like to see one line with a to and from.
Hello Justin:
A few good utilities for parsing most log files are:
awk
sed
perl
Awk can quickly parse out info by fields, records, etc.
You may wish to check out the following article found at Oreilly's site:
http://www.oreillynet.com/pub/a/oreilly/linux/2002/11/01/awk3.html
Lou
>--
>Justin Bennett
>Network Administrator
>Dynabrade, Inc.
>8989 Sheridan Dr.
>Clarence, NY 14031
>
>
More information about the nflug
mailing list