Apache Logs

Posted by support | Apachee, Linux | Thursday 22 March 2007 8:24 am

How to get Apache to show the correct log format

Apache Log PDF

Apache Log FormatFig 1.1 Webmin View

ApacheLogformat.png 

Default Log Format: “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”" combined

Access log Files
                Radio Button to (text box) type combined

Write to
                Radio Button to File the /var/log/httpd/nameof file.log

VI httpd.conf (text version)

LogFormat “\”%h %l %u %t \\”%r\\” %>s %b \\”%{Referer}i\\” \\”%{User-Agent}i\\”\” combined”

Put this line in your httpd.conf file usually under /etc/httpd/conf/httpd.conf for Red Hat