On 6/22/05, Ben Hanson <[EMAIL PROTECTED]> wrote:
> Got my first nightly stats breakdown email this morning after starting
> testing the 3.10pre1 version.  The report states zero spam, which is
> true (allright devs!) but then, zero mail as well.  Did any log format
> change that I need to be aware of?  I didn't see any notes.  I copied
> over the sa-stats.pl script to where I have a cron job execute it from,
> so I'm not running an old version.
> 

Im seeing the same but with 3.0.4

running from the command line with -v -D shows a number of entries like...

Found log entry at 1119444716 for spamd containing clean message
(-1.2/5.0) for exim:10003 in 11.3 seconds, 25723 bytes.

Which as far as i can tell sa-stats is looking for to make up the
stats, however, the report generated has 0 mails processed!

Ben

Full output from sa-stats -v -D

bash-3.00# /apps/src/Mail-SpamAssassin-3.0.4/tools/sa-stats.pl  -l
/var/log/syslog -v -D
Default options:
opt{end} => <undefined>
opt{from} => SpamAssassin System Admin
opt{logfile} => /apps/exim/logs/spamd.log
opt{sendmail} => /usr/sbin/sendmail
opt{start} => today

User options:
opt{debug} => 1
opt{end} => <undefined>
opt{from} => SpamAssassin System Admin
opt{help} => <undefined>
opt{html} => <undefined>
opt{logfile} => /var/log/syslog
opt{mail} => <undefined>
opt{sendmail} => /usr/sbin/sendmail
opt{start} => today
opt{topusers} => <undefined>
opt{userstats} => <undefined>
opt{verbose} => 1
opt{version} => <undefined>

Timing:
start = 1119444953 Wed Jun 22 13:55:53 +0100 2005
  end = 1119531353 Thu Jun 23 13:55:53 +0100 2005

Creating log parser: Parse::Syslog->new(/var/log/syslog, year => 2005,
_last_mon => 5,)
Note that _last_mon = month - 1

##### Entering parseloop:

Found log entry at 1119280270 for spamc containing connect(AF_INET) to
spamd at 127.0.0.1 failed, retrying (#1 of 3): Connection refused
Found log entry at 1119280271 for spamc containing connect(AF_INET) to
spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Found log entry at 1119280272 for spamc containing connect(AF_INET) to
spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Found log entry at 1119280273 for spamc containing connection attempt
to spamd aborted after 3 retries
Found log entry at 1119444293 for spamd containing spamd starting, 2nd try
Found log entry at 1119444293 for spamd containing failed to
setlogsock(unix): no connection to syslog available at
/usr/local/bin/spamd line 1746
Found log entry at 1119444293 for spamd containing falling back to
inet (you might want to use --syslog-socket=inet)
Found log entry at 1119444302 for spamd containing server started on
port 783/tcp (running version 3.0.4-trigold_2005061401)
Found log entry at 1119444302 for spamd containing connection from
localhost [127.0.0.1] at port 37940
Found log entry at 1119444302 for spamd containing info: setuid to
exim succeeded
Found log entry at 1119444302 for spamd containing processing message
<[EMAIL PROTECTED]> for
exim:10003.
Found log entry at 1119444302 for spamd containing server successfully
spawned child process, pid 12700
Found log entry at 1119444302 for spamd containing server successfully
spawned child process, pid 12701
Found log entry at 1119444302 for spamd containing server successfully
spawned child process, pid 12702
Found log entry at 1119444302 for spamd containing server successfully
spawned child process, pid 12703
Found log entry at 1119444302 for spamd containing server successfully
spawned child process, pid 12704
Found log entry at 1119444306 for spamd containing clean message
(-2.6/5.0) for exim:10003 in 4.7 seconds, 3133 bytes.
Found log entry at 1119444306 for spamd containing result: . -2 -
BAYES_00 scantime=4.7,size=3133,mid=<[EMAIL 
PROTECTED]>,bayes=2.22044604925031e-16,autolearn=ham
Found log entry at 1119444313 for spamd containing server killed by
SIGTERM, shutting down
Found log entry at 1119444318 for spamd containing spamd starting, 2nd try
Found log entry at 1119444318 for spamd containing failed to
setlogsock(unix): no connection to syslog available at
/usr/local/bin/spamd line 1746
Found log entry at 1119444318 for spamd containing falling back to
inet (you might want to use --syslog-socket=inet)
Found log entry at 1119444324 for spamd containing server started on
port 783/tcp (running version 3.0.4-trigold_2005061401)
Found log entry at 1119444324 for spamd containing server successfully
spawned child process, pid 12729
Found log entry at 1119444324 for spamd containing server successfully
spawned child process, pid 12730
Found log entry at 1119444324 for spamd containing server successfully
spawned child process, pid 12731
Found log entry at 1119444324 for spamd containing server successfully
spawned child process, pid 12732
Found log entry at 1119444324 for spamd containing server successfully
spawned child process, pid 12733
Found log entry at 1119444335 for spamd containing server killed by
SIGTERM, shutting down
Found log entry at 1119444638 for spamd containing spamd starting
Found log entry at 1119444646 for spamd containing server started on
port 783/tcp (running version 3.0.4-trigold_2005061401)
Found log entry at 1119444646 for spamd containing server successfully
spawned child process, pid 12889
Found log entry at 1119444646 for spamd containing server successfully
spawned child process, pid 12890
Found log entry at 1119444647 for spamd containing server successfully
spawned child process, pid 12891
Found log entry at 1119444647 for spamd containing server successfully
spawned child process, pid 12892
Found log entry at 1119444647 for spamd containing server successfully
spawned child process, pid 12893
Found log entry at 1119444705 for spamd containing connection from
localhost [127.0.0.1] at port 37968
Found log entry at 1119444705 for spamd containing info: setuid to
exim succeeded
Found log entry at 1119444705 for spamd containing processing message
(unknown) for exim:10003.
Found log entry at 1119444716 for spamd containing clean message
(-1.2/5.0) for exim:10003 in 11.3 seconds, 25723 bytes.
Found log entry at 1119444716 for spamd containing result: . -1 -
BAYES_00,FROM_NO_LOWER,FROM_NO_USER,MIME_BOUND_NEXTPART
scantime=11.3,size=25723,mid=(unknown),bayes=1.11022302462516e-16,autolearn=no
##### Exiting parseloop:

Report Title     : SpamAssassin - Spam Statistics
Report Date      : 2005-06-22
Period Beginning : Wed Jun 22 13:55:53 2005
Period Ending    : Thu Jun 23 13:55:53 2005

Reporting Period : 24.00 hrs
--------------------------------------------------

Note: 'ham' = 'nonspam'

Total spam detected    :        0 (   0.00%)
Total ham accepted     :        0 (   0.00%)
                        -------------------
Total emails processed :        0 (    0/hr)

Average spam threshold :        0.00
Average spam score     :        0.00
Average ham score      :        0.00

Spam kbytes processed  :        0   (    0 kb/hr)
Ham kbytes processed   :        0   (    0 kb/hr)
Total kbytes processed :        0   (    0 kb/hr)

Spam analysis time     :        0 s (    0 s/hr)
Ham analysis time      :        0 s (    0 s/hr)
Total analysis time    :        0 s (    0 s/hr)


Statistics by Hour
----------------------------------------------------
Hour                          Spam               Ham
-------------    -----------------    --------------
2005-06-22 13             0 (  0%)          0 (  0%)
2005-06-22 14             0 (  0%)          0 (  0%)
2005-06-22 15             0 (  0%)          0 (  0%)
2005-06-22 16             0 (  0%)          0 (  0%)
2005-06-22 17             0 (  0%)          0 (  0%)
2005-06-22 18             0 (  0%)          0 (  0%)
2005-06-22 19             0 (  0%)          0 (  0%)
2005-06-22 20             0 (  0%)          0 (  0%)
2005-06-22 21             0 (  0%)          0 (  0%)
2005-06-22 22             0 (  0%)          0 (  0%)
2005-06-22 23             0 (  0%)          0 (  0%)
2005-06-23 00             0 (  0%)          0 (  0%)
2005-06-23 01             0 (  0%)          0 (  0%)
2005-06-23 02             0 (  0%)          0 (  0%)
2005-06-23 03             0 (  0%)          0 (  0%)
2005-06-23 04             0 (  0%)          0 (  0%)
2005-06-23 05             0 (  0%)          0 (  0%)
2005-06-23 06             0 (  0%)          0 (  0%)
2005-06-23 07             0 (  0%)          0 (  0%)
2005-06-23 08             0 (  0%)          0 (  0%)
2005-06-23 09             0 (  0%)          0 (  0%)
2005-06-23 10             0 (  0%)          0 (  0%)
2005-06-23 11             0 (  0%)          0 (  0%)
2005-06-23 12             0 (  0%)          0 (  0%)
2005-06-23 13             0 (  0%)          0 (  0%)


Done. Report generated in 0 sec by sa-stats.pl, version 6256.

-- 
"The Edge ... there is no honest way to explain it because the only
people who really know where it is are the ones who have gone over."

Hunter S. Thompson (1939-2005)

Reply via email to