Страница 1 из 1

awstat + sendmail: не парсяца логи

Добавлено: 2013-09-19 8:45:53
dekloper
сделал как мануалом велено
и нифига не спарсилось

Код: Выделить всё

perl awstats.pl -config=mail        
Create/Update database for config "/etc/awstats/awstats.mail.conf" by AWStats version 7.1 (build 1.983)
From data in log file "perl /usr/local/www/awstats/tools/maillogconvert.pl standard < /usr/log/maillog |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Jumped lines in file: 0
Parsed lines in file: 0
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 0 new qualified records.
чо ему нада то?

Re: awstat + sendmail: не парсяца логи

Добавлено: 2013-09-27 5:46:35
Vlad5503
У меня парсит, но вот на вэбморде я этого увидеть не могу. Вижу файлы которые выкладываются в директорию для апача и не более.
Вот следы парсера:

Код: Выделить всё

Create/Update database for config "/usr/local/etc/awstats/awstats.mail.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/var/log/maillog"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 2999)
Jumped lines in file: 2999
 Found 2999 already parsed records.
Parsed lines in file: 277
 Found 133 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 144 corrupted records,
 Found 0 old records,
 Found 0 new qualified records.
Вот что в директории /usr/local/www/awstats/ выкладывается - awstats092013.mail.txt . Его содержимое(приведу часть):

Код: Выделить всё

AWSTATS DATA FILE 7.0 (build 1.971)
# If you remove this file, all statistics for date 201309 will be lost/reset.
# Last config file used to build this data file was /usr/local/etc/awstats/awstats.mail.conf.

# Position (offset in bytes) in this file for beginning of each section for
# direct I/O access. If you made changes somewhere in this file, you should
# also remove completely the MAP section (AWStats will rewrite it at next
# update).
BEGIN_MAP 27
POS_GENERAL 1994
POS_TIME 2679
POS_VISITOR 6568
POS_DAY 7200
POS_DOMAIN 3355
POS_LOGIN 3630
POS_ROBOT 3785
POS_WORMS 3917
POS_EMAILSENDER 4048
POS_EMAILRECEIVER 4679
POS_SESSION 7397
POS_SIDER 7550
POS_FILETYPES 5038
POS_DOWNLOADS 5102
Как ни бился на вэбморде нет данных, все по нулям стоит.
Вот скриншот:
awstats_cr.jpg