Hello all.
I'm having issues getting analog to read qmail
logs. We have mail servers dedicated to individual clients and want to
charge for the bytes being transferred. The format I am using
is
LOGFORMAT "%Y-%m-%d %H:%n:%j.%j info msg %j: bytes
%b from <%u> qp %j uid %j"
An example of a line of particular interest (that
includes the bytes field) looks like
2002-06-23 20:15:20.669317500 info msg 639047:
bytes 1765 from <[EMAIL PROTECTED]> qp
18463 uid 151
I've managed to write logformat lines for a few
other specialized log types but can't seem to get this one down. =(
Here's the output I'm getting when I run analog (and, yes, I'm including
LOGFORMAT above LOGFILE and nowhere below in the config)
F: Opening
/home/logs/dapple/qmail-mm2k/tai64trans/qmail-mm2k-2002-06-22_06:04:25.445825500.s
as logfile
analog: Warning F: Can't auto-detect format of logfile /home/logs/dapple/qmail-mm2k/tai64trans/qmail-mm2k-2002-06-22_06:04:25.445825500.s: ignoring it F: Closing logfile /home/logs/dapple/qmail-mm2k/tai64trans/qmail-mm2k-2002-06-22_06:04:25.445825500.s S: Successful requests: 0 S: Redirected requests: 0 S: Failed requests: 0 S: Requests returning informational status code: 0 S: Status code not given: 0 S: Unwanted lines: 0 S: Corrupt lines: 0 If anyone can help me with this, I would greatly
appreciate it. Below the sig is a copy of several lines from a qmail log
file if they would be helpful.
Thanks,
Garrett Bartley
---Begin excerpt from qmail log
file---
2002-06-23 20:12:21.624961500 starting delivery
1125818: msg 639072 to remote [EMAIL PROTECTED]
2002-06-23 20:12:21.624966500 status: local 0/10 remote 1/350 2002-06-23 20:12:21.624967500 starting delivery 1125819: msg 639104 to remote [EMAIL PROTECTED] 2002-06-23 20:12:21.624970500 status: local 0/10 remote 2/350 2002-06-23 20:12:21.682810500 delivery 1125818: deferral: Connected_to_129.174.0.7_but_connection_died._(#4.4.2)/ 2002-06-23 20:12:21.682817500 status: local 0/10 remote 1/350 2002-06-23 20:12:21.692485500 delivery 1125819: deferral: Connected_to_129.174.0.7_but_connection_died._(#4.4.2)/ 2002-06-23 20:12:21.692488500 status: local 0/10 remote 0/350 2002-06-23 20:15:20.669310500 new msg 639047 2002-06-23 20:15:20.669317500 info msg 639047: bytes 1765 from <[EMAIL PROTECTED]> qp 18463 uid 151 2002-06-23 20:15:20.703484500 starting delivery 1125820: msg 639047 to remote [EMAIL PROTECTED] 2002-06-23 20:15:20.703492500 status: local 0/10 remote 1/350 2002-06-23 20:15:20.940627500 delivery 1125820: success: 24.153.64.1_accepted_message./Remote_host_said:_250_2.5.0_Ok./ 2002-06-23 20:15:20.940634500 status: local 0/10 remote 0/350 2002-06-23 20:15:20.940635500 end msg 639047 ---End excerpt from qmail log
file---
|
- Re: [analog-help] Logformat for Qmail? analog-help
- Re: [analog-help] Logformat for Qmail? analog-help
- Re: [analog-help] Logformat for Qmail? analog-help
- Re: [analog-help] Logformat for Qmail? analog-help