For httpd server logging, W3C logging format is preferred, with the agent and referrer extensions in separate files. To enable logging, set the CustomLog fields in the httpd.conf files as follows:

LogFormat "%h %l %u %t \"%r\" %s %b" common
LogFormat "%{Referer}i-> %U" referer
LogFormat "%{User-agent}I" agent
CustomLog /path/to/audit/logs/access_log common
CustomLog /path/to/audit/logs/referer_log referer
CustomLog /path/to/audit/logs/agent_log agent

Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive

Connect