maillog

Justin Bennett Justin.Bennett at dynabrade.com
Tue Mar 29 10:22:38 EST 2005


I got it, it was a little of a pain. I have to read the file once for 
the from user I want, then read it again looking for the message id to 
get the to address.

Thanks

Justin Bennett
Network Administrator
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
 



On 3/29/2005 9:33 AM, Louis Spironello wrote:

>
>
>> 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