Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LogFormat for webalizer

Status
Not open for further replies.

gchen

Programmer
Nov 14, 2002
174
US
hi,

i just installed webalizer on my linux box which is running apache 2.0.

basically the webalizer works but i have problem getting...

search string
user agent

included in log report. i guess the "LofFormat" in my httpd.conf is not quite correct. What i was using are...

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

and

CustomLog /etc/httpd/logs/access_log combined
CustomLog logs/referer_log referer
CustomLog logs/agent_log agent

any webalizer guru here can help to shed some light?

Thanks a million!!!!!

Gary



 
Yes, I am aware of this FAQ but had some confusion... i am lucky to get some clarification from Brad Barrett, the webalizer creator, and it all works out. Thanks!

For whoever interested in this topic, here is what i did...

put below lines in httpd.conf ...

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

and below line in each of the VirtualHost directive...

CustomLog /etc/httpd/logs/virtual_name_access_log combined
(of course, repelace the virtual_name_access_log with appropriate log file name you wish to use for that particular virtual host)

That's it!

Gary
 
gchen,

Good to know, expecially in your situation with VirtualHost containers. Maybe you should write a FAQ.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top