Chapter 16. Logging and Statistics

Table of Contents
16.1. Scheduler Statistics log
16.2. syslogged log formats

This text has been copied from other sections and will change...

16.1. Scheduler Statistics log

The statistics log reports condenced performance oriented information in following format:
timestamp fileid  dt1 dt2 state $channel/$host
812876190 90401-2   0   5    ok usenet/-
812876228 90401-1   0   7    ok usenet/-
812876244 90401-1   0   1    ok local/gopher-admin
812876244 90401-1   0   5    ok smtp/funet.fi
812876559 90401-1   0  21    ok smtp/utu.fi
where the fields are:

timestamp

The original spoolfile ctime (creation time) stamp in decimal.

fileid

Spoolfile name after the router has processed it.

dt1

The time difference from spoolfile ctime to scheduler control file creation by the router.

dt2

The time difference from scheduler file ctime to the delivery that is logged on.

state

What happened? Values: ok, ok2, ok3, error, error2, expiry

$channel/$host

Where/how it was processed.

16.2. syslogged log formats

At syslog facility the system logs also material, if it has so been configured.

Different subsystems do different logs, they are described below.

16.2.1. Smtpserver's Syslog Format

The smtpserver may log in multiple formats:

INFO: connection from ..., WARN: refusing connection from ..., INFO: accepted id ... into freeze.., INFO: TASPID accepted from...

where TASPID: A spool-id that is valid throughout message lifetime in the system, and should be long-term unique, even. (Per system.)

EMERG: smtpserver policy database problem..., ERR: MAILBIN unspecified in zmailer.conf

16.2.2. Router's Syslog Format

The router does syslog() in following format:

taspid: from=<addr>, rrelay=smtprelay, size=nnn, nrcpts=nnn, msgid=str

Where:

taspid

The TA-SPOOL-ID — A spool-id that is valid throughout message lifetime

from=

the envelope source address

rrelay=

the message ``rcvdfrom'' envelope header reports.

size=

Total message size in bytes (envelope+headers+body)

nrcpts=

Number of recipients for this message

msgid=

The ``Message-ID:'' header content

16.2.3. Transport Agent's Syslog Format

The transport agents log in following format:

taspid: to=<addr>, delay=dd, xdelay=xx, mailer=mm, relay=rr (wtt), stat=%s msg

Here the fields are:

taspid

The ta-spool-id — A spool-id that is valid throughout message lifetime

to=

Destination address in whatever form the transport agent uses.

delay=

Delay from message arrival to the system to this logging moment

xdelay=

Delay during this processing attempt — tells how much time this time was spent to process the message.

mailer=

Tells what ``channel'' was used.

relay=

Reports on which host the message is relayed thru (``wtthost''), and for SMTP, also (in parenthesis) what was the relay's IP address.

stat=

What status was achieved: ok*, delayed, failed, ... {\bf\Large CHECK!}

msg

Arbitary text line from whatever system is out there.