Total de visualizações de página

segunda-feira, 25 de abril de 2016

Mail Log Analyze : AWstats


Mail Log Analyze : AWstats
2014/09/30
 
Install AWstats which is the Mail Log reporting tool.
[1]
[2]Install AWstats.
# install from EPEL

[root@mail ~]# 
yum --enablerepo=epel -y install awstats
# "awstas.(your hostname).conf" is generated automatically

[root@mail ~]# 
vi /etc/awstats/awstats.mail.server.world.conf
# line 50: change

LogFile="
/usr/share/awstats/tools/maillogconvert.pl standard < /var/log/maillog |
"
# line 62: change

LogType=
M
# line 122 comment out and the line below

#
LogFormat=1
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
# line 838: change like follows

LevelForBrowsersDetection=
0

LevelForOSDetection=
0

LevelForRefererAnalyze=
0

LevelForRobotsDetection=
0

LevelForSearchEnginesDetection=
0

LevelForKeywordsDetection=
0

LevelForFileTypesDetection=
0

LevelForWormsDetection=0
# line 956: change like follows

ShowMonthStats=
UHB

ShowDaysOfMonthStats=
HB

ShowDaysOfWeekStats=
HB

ShowHoursStats=
HB

ShowDomainsStats=
0

ShowHostsStats=
HBL

ShowRobotsStats=
0

ShowEMailSenders=
HBML

ShowEMailReceivers=
HBML

ShowSessionsStats=
0

ShowPagesStats=
0

ShowFileTypesStats=
0

ShowOSStats=
0

ShowBrowsersStats=
0

ShowOriginStats=
0

ShowKeyphrasesStats=
0

ShowKeywordsStats=
0

ShowMiscStats=
0

ShowHTTPErrorsStats=
0

ShowSMTPErrorsStats=
1
[root@mail ~]# 
vi /etc/httpd/conf.d/awstats.conf
# line 30: add IP address you permit to access

Require ip 10.0.0.0/24
[root@mail ~]# 
systemctl restart httpd 
# update reports manually ( it's updated automatically for hours by Cron )

[root@mail ~]# 
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail.server.world -configdir=/etc/awstats

Create/Update database for config "/etc/awstats/awstats.mail.server.world.conf" by AWStats version 7.3 (build 20140126)
From data in log file "/usr/share/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 11
 Found 4 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 7 new qualified records.
[3]Access to 'http://(your server's hostname or IP address)/awstats/awstats.pl' with web browser on clients. Then following screen is shown and it's possible to make sure mail log summary.

Nenhum comentário:

Postar um comentário