I installed awstats and it looks in principle ok.
The only thing is, that I still have only one visitor with all the hits and only an "unknown ip" as addresses.
All other thinks (OS, browser etc.) look ok
Any Idea where to search?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI installed awstats and it looks in principle ok.
The only thing is, that I still have only one visitor with all the hits and only an "unknown ip" as addresses.
All other thinks (OS, browser etc.) look ok
Any Idea where to search?
I was lazy with my apache2 configuration.
I put all vmhost log data into /var/log/apache2/other_vhosts_access.log
It is ok for me.
But then apache2 has a different log format.
A look at apache2.conf tells - look at vhost_combined
and the %v:%p at the start :
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
And this does not fit to awstats
LogFormat=1 #that is:
#LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
Solutions:
or
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
ie. remove the "%v:%p"or
LogFormat = "%other %host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
ie. add an %other at the beginning of the line, to get rid of domain:port