ApacheソスAソスNソスZソスXソスソスソスOソスソスソス(AWStats)

ソスナ終ソスXソスVソスソスソスF 2017.05.13

<<ソスgソスbソスvソスyソス[ソスW <<ソスVソスソスソスソスソス <<ソスTソスCソスgソスソスソスソスソスソス <<CentOSソスナ趣ソスソスソスTソス[ソスoソス[ソス\ソスz <<Scientific Linuxソスナ趣ソスソスソスTソス[ソスoソス[ソス\ソスz

ソスソスソスTソスv

AWStatsソス利用ソスソスソスソスApacheソスフアソスNソスZソスXソスソスソスOソスソスソスソスヘゑソスソスAWebソスTソスCソスgソスヨのアソスNソスZソスXソスソスソスvソスソスWebソスuソスソスソスEソスUソスソスソスソスQソスニでゑソスソスソス謔、ソスノゑソスソスソスBソスソスソスソスソスTソスCソスgソスフサソスソスソスvソスソス


ソスソスAWStatsソスCソスソスソスXソスgソス[ソスソス

[root@fedora ~]# yum -y install awstatsソス@ソスソスソス@AWStatsソスCソスソスソスXソスgソス[ソスソス

[root@fedora ~]# vi /usr/share/awstats/wwwroot/cgi-bin/awstats.plソス@ソスソスソス@awstats.plソスメ集
ソスソスソスソスソス|ソス[ソスgソスフ難ソスソスtソス`ソスソスソスソスソスuソスソス 2ソスソス 2010ソスvソスソスソスソスu2010ソスN 2ソスソスソスvソスヨ変更
                                if ( $MonthRequired eq 'all' ) {
                                        print "$Message[6] $YearRequired";
                                }
                                else {
                                        print
                                          #"$Message[5] $MonthNumLib{$MonthRequired} $YearRequired";ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                          "$YearRequired$Message[6] ".$MonthNumLib{$MonthRequired};ソス@ソスソスソス@ソスヌ会ソス(ソスソスソスtソスソスYYYYソスN MMソスソスソス`ソスソスソスノゑソスソスソス)
                                }

                        print( $MonthRequired eq 'all'
                                ? "$Message[6] $YearRequired"
                                #: "$Message[5] "ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                  #. $MonthNumLib{$MonthRequired}ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                  #. " $YearRequired"ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                : "$YearRequired$Message[6] $MonthNumLib{$MonthRequired}"ソス@ソスソスソス@ソスヌ会ソス(ソスソスソスtソスソスYYYYソスN MMソスソスソス`ソスソスソスノゑソスソスソス)
                        );

                                        #print "$MonthNumLib{$monthix}<br />$YearRequired";ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                        print "$YearRequired$Message[6]<br />$MonthNumLib{$monthix}";ソス@ソスソスソス@ソスヌ会ソス(ソスソスソスtソスソスYYYYソスN MMソスソスソス`ソスソスソスノゑソスソスソス)
                                        
                                        #print "$MonthNumLib{$monthix} $YearRequired";ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
                                        print "$YearRequired$Message[6] $MonthNumLib{$monthix}";ソス@ソスソスソス@ソスヌ会ソス(ソスソスソスtソスソスYYYYソスN MMソスソスソス`ソスソスソスノゑソスソスソス)

ソスソスAWStatsソスン抵ソス

ソスiソスPソスjAWStatsソスン抵ソス
[root@fedora ~]# rm -f /etc/awstats/awstats.localhost.localdomain.confソス@ソスソスソス@ソスsソスvソスネ設抵ソスtソス@ソスCソスソスソスソスソス除ソスソス

[root@fedora ~]# rm -f /etc/awstats/awstats.`hostname`.confソス@ソスソスソス@ソスsソスvソスネ設抵ソスtソス@ソスCソスソスソスソスソス除ソスソス

ソスソスソスCソスソスソスXソスgソス[ソスソスソスソスソスノ趣ソスソスソスソスナ作成ソスソスソスソス驍アソスソスソスフ設抵ソスtソス@ソスCソスソスソスソスソスソスuソスソスソストゑソスソスソスソスニ、/etc/cron.hourly/awstatsソスノゑソスソス1ソスソスソスヤゑソスソスソスソスソス
ソスソスソスソスソスソスソスsソスソスソスソスソスAWStatsソスfソス[ソス^ソスxソス[ソスXソスXソスVソスソスソスソスソスフ擾ソスソスソスソスホ象となゑソスソストゑソスソスワゑソスソスト厄ソスソスハな擾ソスソスソスソスソスソスソスソスしソストゑソスソスワゑソスソスフで、ソス除ソスソスソストゑソスソスソス

[root@fedora ~]# cp /etc/awstats/awstats.model.conf /etc/awstats/awstats.fedorasrv.com.conf
ソス@ソスソスソス@ソスン抵ソスtソス@ソスCソスソスソスソスソスTソスソスソスvソスソスソスソスソスRソスsソス[

[root@fedora ~]# vi /etc/awstats/awstats.fedorasrv.com.confソス@ソスソスソス@ソスン抵ソスtソス@ソスCソスソスソスメ集
# "SiteDomain" must contain the main domain name, or the main intranet web
# server name, used to reach the web site.
# If you share the same log file for several virtual web servers, this
# parameter is used to tell AWStats to filter record that contains records for
# this virtual host name only (So check that this virtual hostname can be
# found in your log file and use a personalized log format that include the
# %virtualname tag).
# But for multi hosting a better solution is to have one log file for each
# virtual web server. In this case, this parameter is only used to generate
# full URL's links when ShowLinksOnUrl option is set to 1.
# If analysing mail log, enter here the domain name of mail server.
# Example: "myintranetserver"
# Example: "www.domain.com"
# Example: "ftp.domain.com"
# Example: "domain.com"
#
SiteDomain="localhost.localdomain"
ソスソス
SiteDomain="fedorasrv.com"ソス@ソスソスソス@WebソスTソス[ソスoソス[ソスソスソスソスソスwソスソス

# Enter here all other possible domain names, addresses or virtual host
# aliases someone can use to access your site. Try to keep only the minimum
# number of possible names/addresses to have the best performances.
# You can repeat the "SiteDomain" value in this list.
# This parameter is used to analyze referer field in log file and to help
# AWStats to know if a referer URL is a local URL of same site or an URL of
# another site.
# Note: Use space between each value.
# Note: You can use regular expression values writing value with REGEX[value].
# Note: You can also use @/mypath/myfile if list of aliases are in a file.
# Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
#
HostAliases="127.0.0.1 localhost REGEX[^192\.168\.1\.]"ソス@ソスソスソス@ソスソスソスzソスXソスgソスソスソスソスム難ソスソスソス(ソスソス:192.168.1.x)ソスソスソスソスフアソスNソスZソスXソスソスソスAソスNソスZソスXソスソスソスiソスソスソスtソス@ソスソスソスjソスソスソス迴懶ソスOソスソスソスソス

# Do not include access from clients that match following criteria.
# If your log file contains IP addresses in host field, you must enter here
# matching IP addresses criteria.
# If DNS lookup is already done in your log file, you must enter here hostname
# criteria, else enter ip address criteria.
# The opposite parameter of "SkipHosts" is "OnlyHosts".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
# Example: "localhost REGEX[^.*\.localdomain$]"
# Default: ""
#
SkipHosts="127.0.0.1 localhost REGEX[^192\.168\.1\.]"ソス@ソスソスソス@ソスソスソスzソスXソスgソスソスソスソスム難ソスソスソス(ソスソス:192.168.1.x)ソスソスソスソスフアソスNソスZソスXソスソスソスAソスNソスZソスXソスソスソスiソスNソスソスソスCソスAソスソスソスgソスjソスソスソス迴懶ソスOソスソスソスソス

# If you want to have hosts reported by name instead of ip address, AWStats
# need to make reverse DNS lookups (if not already done in your log file).
# With DNSLookup to 0, all hosts will be reported by their IP addresses and
# not by the full hostname of visitors (except if names are already available
# in log file).
# If you want/need to set DNSLookup to 1, don't forget that this will reduce
# dramatically AWStats update process speed. Do not use on large web sites.
# Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6).
# Note: Result of DNS Lookup can be used to build the Country report. However
# it is highly recommanded to enable the plugin 'geoipfree' or 'geoip' to
# have an accurate Country report with no need of DNS Lookup.
# Possible values:
# 0 - No DNS Lookup
# 1 - DNS Lookup is fully enabled
# 2 - DNS Lookup is made only from static DNS cache file (if it exists)
# Default: 2
#
DNSLookup=2
ソスソス
DNSLookup=1ソス@ソスソスソス@ソスAソスNソスZソスXソスソスソスフ厄ソスソスOソスソスソスソスソスソスソスsソスソス(ソスAソスNソスZソスXソスソスソスソスIPソスAソスhソスソスソスXソスナはなゑソスソスzソスXソスgソスソスソスナ表ソスソスソスソスソスソス)

# Show authenticated users chart
# Context: Web, Streaming, Ftp
# Default: 0, Possible column codes: PHBL
ShowAuthenticatedUsers=0
ソスソス
ShowAuthenticatedUsers=PHBLソス@ソスソスソス@ソスFソスリソスソス[ソスUソスソス\ソスソスソスソスソスソス鼾

# Plugin: GeoIPfree
# Perl modules required: Geo::IPfree version 0.2+ (from Graciliano M.P.)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IPfree
# module, database less up to date) or the GeoIP plugin (need Perl Geo::IP
# module from Maxmind, database more up to date).
# Note: Activestate provide a corrupted version of Geo::IPfree 0.2 Perl
# module, so install it from elsewhere (from www.cpan.org for example).
# This plugin reduces AWStats speed of 10% !
#
#LoadPlugin="geoipfree"
ソスソス
LoadPlugin="geoipfree"ソス@ソスソスソス@ソスRソスソスソスソスソスgソスソスソスソス(ソスAソスNソスZソスXソスソスソスソスソスソスソスソスソスレ細に取得)

# When AWStats builds HTML links in its report pages, it starts those links
# with "http://". However some links might be HTTPS links, so you can enter
# here the root of all your HTTPS links. If all your site is a SSL web site,
# just enter "/".
# This parameter is not used if ShowLinksOnUrl is 0.
# Example: "/shopping"
# Example: "/"
# Default: ""
#
UseHTTPSLinkForUrl="/"ソス@ソスソスソス@/ソスソスソスwソスソスソスソスWebソスTソス[ソスoソス[ソスヤ通信ソスソスソスeソステ搾ソスソスソスソス導難ソスソスソスソストゑソスソスソス鼾ソスフゑソス

[root@fedora ~]# yum -y install perl-Geo-IPfreeソス@ソスソスソス@GeoIPfreeソスvソスソスソスOソスCソスソスソスソスソスソスノ必ソスvソスソスPerlソスソスソスWソスソスソス[ソスソスソスCソスソスソスXソスgソス[ソスソス

ソスソスyumソスナイソスソスソスXソスgソス[ソスソスソスナゑソスソスネゑソスソス鼾ソスソスRPMソスソスソス_ソスEソスソスソスソスソス[ソスhソスソスソストイソスソスソスXソスgソス[ソスソス
[root@fedora ~]# wget http://pkgs.repoforge.org/perl-Geo-IPfree/perl-Geo-IPfree-0.8-1.el6.rf.noarch.rpmソス@ソスソスソス@perl-Geo-IPfreeソス_ソスEソスソスソスソスソス[ソスh

ソスソスソスナ新ソスナゑソスURLソスソスソス_ソスEソスソスソスソスソス[ソスhソスyソス[ソスWソスナ確ソスFソスソスソス驍アソスソス

[root@fedora ~]# yum -y localinstall --nogpgcheck perl-Geo-IPfree-0.8-1.el6.rf.noarch.rpmソス@ソスソスソス@perl-Geo-IPfreeソスCソスソスソスXソスgソス[ソスソス

[root@fedora ~]# rm -f perl-Geo-IPfree-0.8-1.el6.rf.noarch.rpmソス@ソスソスソス@ソス_ソスEソスソスソスソスソス[ソスhソスソスソスソスソスtソス@ソスCソスソスソスソスソス除

ソスiソスQソスjソスソスソス{ソスフ鯉ソスソスソスソスGソスソスソスWソスソスソスホ会ソス
ソスソスソス{ソスフ鯉ソスソスソスソスGソスソスソスWソスソスソスソスソスソスソスソスソスGソスソスソスWソスソスソスニゑソスソスト集ソスvソスソスソスソスソス謔、ソスノゑソスソスソス
[root@fedora ~]# vi /usr/share/awstats/lib/search_engines.pmソス@ソスソスソス@search_engines.pmソスメ集
@SearchEnginesSearchIDOrder_list1=(
ソスネ会ソスソスソスヌ会ソス
# Japanese Search Engines
'google\.co\.jp',
'66\.249\.(89\.99|93\.104)',
'66\.102\.(7\.99|7\.104|9\.104|11\.104)',
'64\.233\.(161\.104|179\.104|167\.104|183\.104|187\.104)',
'72\.14\.(203|205|207|209|221|235|253)\.104',
'216\.239\.(37\.104|39\.104|41\.104|51\.104|57\.104|59\.104)',
'search\.biglobe\.ne\.jp',
'goo\.ne\.jp',
'nifty\.com',
'search\.msn\.co\.jp',
'search\.odn\.ne\.jp',
'excite\.ne\.jp',
'naver\.co\.jp',
'fresheye\.com',
'tocc\.co\.jp',
'infoseek\.co\.jp',
'cache\.yahoofs\.jp',
'search\.livedoor\.com',
'www\.ceek\.jp',
'www\.bing\.com',
's\.luna\.tv',
'72\.14\.207\.99',
'209\.85\.165\.104',
'209\.85\.129\.104',
'209\.85\.129\.132',
'209\.85\.(173|175)\.104',
'74\.125\.47\.132',
'74\.125\.77\.132',
'74\.125\.95\.132',
'74\.125\.153\.132',
'74\.125\.155\.132',
'72\.14\.235\.132',
'66\.249\.89\.104',

%NotSearchEnginesKeys=(
ソスネ会ソスソスソスヌ会ソス
# For Japanese Search Engines
'infoseek\.co\.jp'=>'at\.infoseek\.co\.jp',
'goo\.ne\.jp'=>'members\.goo\.ne\.jp',

%SearchEnginesHashID = (
ソスネ会ソスソスソスヌ会ソス
# Japanese Search Engines
'google\.co\.jp','googlejapan',
'66\.249\.(89\.99|93\.104)','googlejapan',
'66\.102\.(7\.99|7\.104|9\.104|11\.104)','googlejapan',
'64\.233\.(161\.104|179\.104|167\.104|183\.104|187\.104)','googlejapan',
'72\.14\.(203|205|207|209|221|235|253)\.104','googlejapan',
'216\.239\.(37\.104|39\.104|41\.104|51\.104|57\.104|59\.104)','googlejapan',
'search\.biglobe\.ne\.jp','biglobe',
'goo\.ne\.jp','goo',
'nifty\.com','nifty',
'search\.msn\.co\.jp','msnjapan',
'search\.odn\.ne\.jp','odn',
'excite\.co\.jp','excitejapan',
'naver\.co\.jp','naver',
'fresheye\.com','fresheye',
'tocc\.co\.jp','tocc',
'infoseek\.co\.jp','infoseek',
'cache\.yahoofs\.jp','yahoocache',
'search\.livedoor\.com','livedoor',
'www\.ceek\.jp','ceek',
'www\.bing\.com','bing',
's\.luna\.tv','lunascape',
'72\.14\.207\.99','googlejapan',
'209\.85\.165\.104','googlejapan',
'209\.85\.129\.104','googlejapan',
'209\.85\.129\.132','googlejapan',
'209\.85\.(173|175)\.104','googlejapan',
'74\.125\.47\.132','googlejapan',
'74\.125\.77\.132','googlejapan',
'74\.125\.95\.132','googlejapan',
'74\.125\.153\.132','googlejapan',
'74\.125\.155\.132','googlejapan',
'72\.14\.235\.132','googlejapan',
'66\.249\.89\.104','googlejapan',

%SearchEnginesKnownUrl=(
ソスネ会ソスソスソスヌ会ソス
# Japanese Search Engines
'googlejapan','(p|q)=',
'biglobe','q=',
'goo','MT=',
'nifty','Text=',
'msnjapan','(q|MT)=',
'odn','Querystring=',
'excitejapan','search=',
'naver','query=',
'fresheye','kw=',
'tocc','QRY=',
'infoseek','qt=',
'yahoocache','w=',
'livedoor','q=',
'ceek','q=',
'clusty','query=',

@WordsToCleanSearchUrl= ('act=','annuaire=','btng=','cat=','categoria=','cfg=','cof=','cou=','count=','cp=','dd=','domain=','dt=','dw=','enc=','exec=','geo=','hc=','height=','hits=','hl=','hq=','hs=','id=','kl=','lang=','loc=','lr=','matchmode=','medor=','message=','meta=','mode=','order=','page=','par=','pays=','pg=','pos=','prg=','qc=','refer=','sa=','safe=','sc=','sort=','src=','start=','style=','stype=','sum=','tag=','temp=','theme=','type=','url=','user=','width=','what=','\\.x=','\\.y=','y=','look=');
ソスソスソス@ソスマ更
@WordsToCleanSearchUrl= ('act=','annuaire=','btng=','cat=','categoria=','cfg=','cof=','cou=','count=','cp=','dd=','domain=','dt=','dw=','enc=','exec=','geo=','hc=','height=','hits=','hl=','hq=','hs=','id=','kl=','lang=','loc=','lr=','matchmode=','medor=','message=','meta=','mode=','order=','page=','par=','pays=','pg=','pos=','prg=','qc=','refer=','sa=','safe=','sc=','sort=','src=','start=','style=','stype=','sum=','tag=','temp=','theme=','type=','url=','user=','width=','what=','\\.x=','\\.y=','y=','look=','target=','collection=','showSummary=','perPage=','next=','DB=','OPE=','Max=','base=','submit=','SearchType=','SESSIONID=','QUERYRULE=','DISPLAYMIN=','RELURLSWITCH=','SORT=','start=','direct=','relwd=','lk=','svx=','nh=','internet=','DC=','submit0=','DEST=','where=','CCM=','NRS=','UNI=','UD0=','FRS=','sv=','rf=','oq=','col=','act\.search=');

%SearchEnginesHashLib=(
ソスネ会ソスソスソスヌ会ソス
# Japanese Search Engines
'googlejapan','Google Japan',
'biglobe','Biglobe',
'goo','Goo',
'nifty','Nifty',
'msnjapan','MSN Japan',
'odn','ODN',
'excitejapan','Excite Japan',
'naver','Naver',
'fresheye','Fresheye',
'tocc','TOCC/Search',
'infoseek','Infoseek',
'yahoocache','Yahoo Cache',
'livedoor','Livedoor',
'ceek','CEEK.JP',
'bing','Bing',
'lunascape','Lunascape',

ソスソスApacheソスン抵ソス

ソスfソスtソスHソスソスソスgソスナはサソス[ソスoソス[ソス@ソスソスソス轤オソスソスソスAソスNソスZソスXソスソスソスvソスソスソスQソスニでゑソスソスネゑソスソスフで、ソスTソス[ソスoソス[ソス@ソスネ外ソスソスソスソスソスソスAソスNソスZソスXソスソスソスvソスソスソスQソスニでゑソスソスソス謔、ソスノゑソスソスソス鼾ソスヘ、Apacheソスフ設抵ソスソスマ更ソスソスソスソスB

ソスiソスPソスjApacheソスン抵ソスソスソスソスAソスNソスZソスXソスソスソスvソスソスソスOソスソスソスソスソスソスソスソスQソスニでゑソスソスソス謔、ソスノゑソスソスソス鼾
[root@fedora ~]# vi /etc/httpd/conf.d/awstats.confソス@ソスソスソス@ApacheソスpAWStatsソスン抵ソスtソス@ソスCソスソスソスメ集
<Directory "/usr/share/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from 127.0.0.1
    ソスソス
    Allow from Allソス@ソスソスソス@ソスOソスソスソスソスソスソスソスソスQソスニでゑソスソスソス謔、ソスノゑソスソスソス
</Directory>

[root@fedora ~]# /etc/rc.d/init.d/httpd reloadソス@ソスソスソス@Apacheソスン定反ソスf
httpd ソスソスソスト読み搾ソスソスン抵ソス:                                      [  OK  ]

ソスiソスQソスjApacheソスン抵ソスソスソスソスAソスNソスZソスXソスソスソスvソスソスソスソスソスソスソスソスソスフみ参ソスニでゑソスソスソス謔、ソスノゑソスソスソス鼾
[root@fedora ~]# vi /etc/httpd/conf.d/awstats.confソス@ソスソスソス@ApacheソスpAWStatsソスン抵ソスtソス@ソスCソスソスソスメ集
<Directory "/usr/share/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from 127.0.0.1
    Allow from 192.168.1ソス@ソスソスソス@ソスソスソスソスソスソスソスソスフみ参ソスニでゑソスソスソス謔、ソスノゑソスソスソス
</Directory>

[root@fedora ~]# /etc/rc.d/init.d/httpd reloadソス@ソスソスソス@Apacheソスン定反ソスf
httpd ソスソスソスト読み搾ソスソスン抵ソス:                                      [  OK  ]

ソスソスAWStatsソスfソス[ソス^ソスxソス[ソスXソス成

ソスiソスPソスjAWStatsソスfソス[ソス^ソスxソス[ソスXソスソスソスソスソス成
ApacheソスフソスソスOソスtソス@ソスCソスソスソスソスソス゚具ソスソスソスソスソスソスワめて全ソスソスAWStatsソスフデソス[ソス^ソスxソス[ソスXソスノ趣ソス闕橸ソスソス
[root@fedora ~]# vi awstatsinit.shソス@ソスソスソス@AWStatsソスfソス[ソス^ソスxソス[ソスXソスソスソスソスソス成ソスXソスNソスソスソスvソスgソス成
#!/bin/bash

logfile=`grep ^LogFile /etc/awstats/awstats.$1.conf|sed -e 's/LogFile="\([^ ]*\)"/\1/p' -e d`
for log in `ls $logfile*|sort -r`
do
    `rpm -ql awstats|grep "awstats\.pl"` \
    -config=$1 -update -logfile=$log
done

[root@fedora ~]# sh awstatsinit.sh fedorasrv.comソス@ソスソスソス@AWStatsソスfソス[ソス^ソスxソス[ソスXソスソスソスソスソス成ソスXソスNソスソスソスvソスgソスソスソスs
ソスソスソスソスソスOソスハにゑソス闔橸ソスヤゑソスソスソスソスソスソスソス
Update for config "/etc/awstats/awstats.fedorasrv.com.conf"
With data in log file "/var/log/httpd/access_log.4"...
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: 123047
 Found 1821 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 121226 new qualified records.
Update for config "/etc/awstats/awstats.fedorasrv.com.conf"
With data in log file "/var/log/httpd/access_log.3"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record has fallen on another record.
So 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: 130918
 Found 1700 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 129218 new qualified records.
Update for config "/etc/awstats/awstats.fedorasrv.com.conf"
With data in log file "/var/log/httpd/access_log.2"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
So searching it 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: 128865
 Found 1680 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 127185 new qualified records.
Update for config "/etc/awstats/awstats.fedorasrv.com.conf"
With data in log file "/var/log/httpd/access_log.1"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
So searching it 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: 115202
 Found 1532 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 113670 new qualified records.
Update for config "/etc/awstats/awstats.fedorasrv.com.conf"
With data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
So searching it 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: 21746
 Found 312 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 21434 new qualified records.

[root@fedora ~]# rm -f awstatsinit.shソス@ソスソスソス@AWStatsソスfソス[ソス^ソスxソス[ソスXソスソスソスソスソス成ソスXソスNソスソスソスvソスgソス除
ソスソスソスネ鯉ソスソスAWStatsソスfソス[ソス^ソスxソス[ソスXソスフ更ソスVソスソス/etc/cron.hourly/awstatsソスノゑソスソス1ソスソスソスヤゑソスソスソスソスノ趣ソスソスソスソスソスソスsソスソスソスソスソス

ソスiソスQソスjApacheソスソスソスOソスソスソス[ソスeソス[ソスVソスソスソスソスソスン抵ソス
ApacheソスソスソスOソスtソス@ソスCソスソスソスソスソス[ソスeソス[ソスVソスソスソスソスソスソスソスAAWStatsソスフデソス[ソス^ソスxソス[ソスXソスノ趣ソス闕橸ソスソスナゑソスソス辜搾ソス[ソスeソス[ソスVソスソスソスソスソスソスソスsソスソスソス謔、ソスノゑソスソスソス
[root@fedora ~]# vi /etc/logrotate.d/httpdソス@ソスソスソス@ApacheソスソスソスOソスソスソス[ソスeソス[ソスVソスソスソスソスソスン抵ソスtソス@ソスCソスソスソスメ集
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    ソス|ソス|ソス|ソス|ソスヌ会ソス(ソスソスソスソスソスソスソスソス)ソス|ソス|ソス|ソス|
    prerotate
        `rpm -ql awstats|grep "awstats_updateall\.pl"` now -confdir="/etc/awstats" \
        -awstatsprog="`rpm -ql awstats|grep "awstats\.pl"`" >/dev/null
    endscript
    ソス|ソス|ソス|ソス|ソスヌ会ソス(ソスソスソスソスソスワゑソス)ソス|ソス|ソス|ソス|
    postrotate
        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

ソスソスAWStatsソスmソスF

http://WebソスTソス[ソスoソス[ソスソス/awstats/awstats.plソスヨアソスNソスZソスXソスソスソストアソスNソスZソスXソスソスソスvソスyソス[ソスWソスソスソス\ソスソスソスソスソスソス驍アソスニゑソスソスmソスF

ソスソスソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナの作成

awstats.plソスヘ、ソスソスソスsソスソスソス驍スソスムゑソスAWStatsソスフデソス[ソス^ソスxソス[ソスXソスソスソス辜搾ソスOソスソスソスソスソスソスヘゑソスソストアソスNソスZソスXソスソスソスvソスyソス[ソスWソスソスソス成ソスソスソス驍スソス゚、ソスTソス[ソスoソス[ソスノ包ソスソスラゑソスソスソスソスソスソス驍アソスニゑソスソスソスAawstats.plソスヘ難ソスソスソスソスソスソスソスフみ趣ソスソスsソスナゑソスソスソス謔、ソスノゑソスソスソスBソスワゑソスソスAソスソスソスソスソスソスAAWStatsソスフデソス[ソス^ソスxソス[ソスXソスソスソスソスソスソス黷スソス鼾ソスAソスAソスNソスZソスXソスソスソスvソスソスソスソスソスソスネゑソスソスネゑソスソストゑソスソスワゑソスソスソスソス゚、ソスAソスNソスZソスXソスソスソスvソスyソス[ソスWソスソスHTMLソスナ作成ソスソスソスソス謔、ソスノゑソスソスソスB

ソスiソスPソスjソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ格ソス[ソスfソスBソスソスソスNソスgソスソスソスン抵ソス
[root@fedora ~]# mkdir /var/www/awstatsreportソス@ソスソスソス@HTMLソスナ格ソス[ソスfソスBソスソスソスNソスgソスソスソス成

[root@fedora ~]# vi /etc/httpd/conf.d/awstatsreport.confソス@ソスソスソス@HTMLソスナ格ソス[ソスfソスBソスソスソスNソスgソスソスソスAソスNソスZソスXソスン抵ソスtソス@ソスCソスソスソス成
Alias /awstatsreport "/var/www/awstatsreport"
ソスネ会ソスソスヘアソスNソスZソスXソスソスソスvソスソスソスOソスソスソスノ鯉ソスソスJソスソスソスネゑソスソス鼾ソスフみ指ソスソス
<Location "/awstatsreport">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 192.168.1ソス@ソスソスソス@ソスソスソスソスソスlソスbソスgソスソスソス[ソスNソスAソスhソスソスソスXソスソスソスwソスソス
</Location>

ソスiソスQソスjawstats.plソスAソスNソスZソスXソスソスソスソス
awstats.plソスヘ包ソスソスラゑソスソスソスソスソスソスソスフで、ソスソスソスソスソスソスソスソスフみアソスNソスZソスXソスナゑソスソスソス謔、ソスノゑソスソストゑソスソスソス
[root@fedora ~]# vi /etc/httpd/conf.d/awstats.confソス@ソスソスソス@ApacheソスpAWStatsソスン抵ソスtソス@ソスCソスソスソスメ集
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
<Files "awstats.pl">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 192.168.1ソス@ソスソスソス@ソスソスソスソスソスlソスbソスgソスソスソス[ソスNソスAソスhソスソスソスXソスソスソスwソスソス
</Files>

ソスiソスRソスjApacheソスン定反ソスf
[root@fedora ~]# /etc/rc.d/init.d/httpd reloadソス@ソスソスソス@Apacheソスン定反ソスf
httpd ソスソスソスト読み搾ソスソスン抵ソス:                                      [  OK  ]

ソスiソスSソスjソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成
[root@fedora ~]# vi awstatsreport.shソス@ソスソスソス@ソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成ソスXソスNソスソスソスvソスgソス成
#!/bin/bash

site=$1
dir=$2

reportbuild() {
    # AWStatsソスfソス[ソス^ソスxソス[ソスXソスXソスVソスソスソスfソスソスソスソスソスbソスNソスtソス@ソスCソスソスソスcソスソスソスホ擾ソス(ソスソスソスソスソスソスソスソス)
    if [ -f /tmp/awstats.$site.lock ]; then
        ps -p `cat /tmp/awstats.$site.lock |awk '{print $6}'`
        if [ $? -ne 0 ]; then
            echo /tmp/awstats.$site.lock removed >&2
            rm -f /tmp/awstats.$site.lock 
        fi
    fi
    # AWStatsソスfソス[ソス^ソスxソス[ソスXソスXソスVソスソスソスfソスソスソスソスソスbソスNソスtソス@ソスCソスソスソスcソスソスソスホ擾ソス(ソスソスソスソスソスワゑソス)
    `rpm -ql awstats|grep "awstats_buildstaticpages\.pl"` \
    -awstatsprog="`rpm -ql awstats|grep "awstats\.pl"`"\
    -config=$site -update -lang=jp -dir=$dir \
    -year=$YEAR -month=$MONTH -builddate=$YEAR$MONTH
    # ソスツ別ペソス[ソスWソスソスソスソスソスNソスリゑソスホ擾ソス(ソスソスソスソスソスソスソスソス)
    sed -i "s/href=\"${site}/href=\"awstats.${site}/g" \
    $dir/awstats.$site.$YEAR$MONTH.html
    # ソスツ別ペソス[ソスWソスソスソスソスソスNソスリゑソスホ擾ソス(ソスソスソスソスソスワゑソス)
    if [ "$YEAR$MONTH" = $(date +%Y%m) ]; then
        mv $dir/awstats.$site.$YEAR$MONTH.html $dir/index.html
    else
        mv $dir/awstats.$site.$YEAR$MONTH.html $dir/$YEAR$MONTH.html
    fi
}

ls $dir/* > /dev/null 2>&1
if [ $? -eq 0 ]; then
    YEAR=`date --date '1 days ago' +%Y`
    MONTH=`date --date '1 days ago' +%m`
    reportbuild
else
    DirData=`grep ^DirData /etc/awstats/awstats.model.conf|awk -F= '{print $2}'|tr -d \"`
    for log in `ls $DirData/awstats*.$site.txt`
    do
        YEAR=`echo $log|cut -d / -f 5|cut -d . -f 1|sed -e 's/awstats..\([^ ]*\)/\1/p' -e d`
        MONTH=`echo $log|cut -d / -f 5|cut -d . -f 1|sed -e 's/awstats\([^ ]*\)..../\1/p' -e d`
        reportbuild
    done
fi



[root@fedora ~]# chmod 700 awstatsreport.shソス@ソスソスソス@ソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成ソスXソスNソスソスソスvソスgソスヨ趣ソスソスsソスソスソスソスソスtソスソス

[root@fedora ~]# ./awstatsreport.sh fedorasrv.com /var/www/awstatsreportソス@ソスソスソス@ソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成ソスXソスNソスソスソスvソスgソスソスソスs

ソスiソスTソスjソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ確ソスF
http://WebソスTソス[ソスoソス[ソスソス/awstatsreport/ソスヨアソスNソスZソスXソスソスソスト搾ソスソスソスソスソスソスフアソスNソスZソスXソスソスソスvソスyソス[ソスWソスソスソス\ソスソスソスソスソスソス驍アソスニゑソスソスmソスF
ソス゚具ソスソスフアソスNソスZソスXソスソスソスvソスyソス[ソスWソスソスhttp://WebソスTソス[ソスoソス[ソスソス/awstatsreport/ソスNソスソス(YYYYMM).html(ソスソス:http://WebソスTソス[ソスoソス[ソスソス/awstatsreport/200601.html)ソスヨアソスNソスZソスXソスソスソスソス

ソスiソスUソスjソスAソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成ソスソスソスソスソスソスソスソスソスソスsソスン抵ソス
[root@fedora ~]# echo "00 00 * * * root /root/awstatsreport.sh fedorasrv.com /var/www/awstatsreport > /dev/null" > /etc/cron.d/awstatsreport
ソス@ソスソスソス@cronソスoソス^
ソスソスソスソス00:00ソスノアソスNソスZソスXソスソスソスvソスyソス[ソスWHTMLソスナ作成ソスXソスNソスソスソスvソスgソスソスソスs


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[