PMDF System Manager's Guide


Previous Contents Index

31.1.3 log_condense Utility

The log_condense utility scans mail.log format files and produces a condensed report file with one entry for each message that has passed through PMDF. This condensed log file may be used to analyze PMDF message traffic, for example by importing it into a Microsoft Excel spreadsheet or using a site-written script. Most sites will want to run log_condense against mail.log_yesterday to generate a condensed log file for the previous day's mail.

To run the log_condense utility:

For UNIX:


#  /pmdf/bin/log_condense input_log_file condensed_output_file

For VMS:


$ log_condense :== $PMDF_EXE:LOG_CONDENSE.EXE
$ log_condense input_log_file condensed_output_file

For Windows:


C:\pmdf\bin> log_condense input_log_file condensed_output_file

The entries generated by the log_condense utility have the following fields (wrapped for typographic reasons):


18-Jul-2012 10:16:35.45 18-Jul-2012 10:16:38.02 <01KK8H2E31XG8WW0JF@otherco> 
        (1)                         (2)                      (3)
 
john.doe@otherco.com rfc822;jane.doe@example.com jane.doe@naples.example.com 
      (4)                     (5)                               (6)
 
naples.example.com 4 4 E,tcp_local,tcp_internal,D 250 
      (7)            (8)(9)       (10)                   (11)     
 

  1. The date and time the message was accepted.
  2. The date and time the message was delivered.
  3. The unique message ID.
  4. The envelope From: address.
  5. The original To: address.
  6. The destination address after rewrites, aliases, and mappings have been applied.
  7. The host name of the system the message is being delivered to.
  8. The size of the message in blocks when it was accepted.
  9. The size of the message in blocks when it was delivered.
  10. A comma-separated list of every channel that the message passed through. The status code of the accepting channel is prepended to the list, while the status code of the delivering channel is appended to the list.
  11. The SMTP status code returned by the system the message was delivered to.

Any field of the entry that cannot be determined from the input log file will contain a hyphen.

Note

The following options must be set in option.dat for log_condense to operate properly.
LOG_MESSAGEID=1
LOG_HEADER=0
LOG_FORMAT=1 or 2
SEPARATE_CONNECTION_LOG=1
Any log files generated without these options set as indicated cannot be analyzed by log_condense .


Previous Next Contents Index