Wiki source for LogFormat
>>http://www.maretmanu.org/homepage/inform/apache-forwarded.php
>>====Apache HTTPD logformat====
logformat lets you define custom logformat
==logformat==
%%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
%%
== logformat including orig ip addr and cookies !
%%
LogFormat "%h %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combinedplus
%%
==logformat for referrers and user-agents==
%%
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
%%
==logformat with combined input and output stats==
%%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
%%
==logformat for vhosts==
to create one log file for all vhosts add %v to your access LogFormat
%%
LogFormat "%v %h %l %u %t \"%r\" %>s %b" common
%%
you can then use split-logfile to split the single logfile into separate logs at a later date
NOTE: You cant create 'custom' log formats for your apache httpd error logs
==logformat for form POST data==
You'll need to configure ModDumpIo to log form POST data to your error logs !
----
REFERRERS
{{backlinks}}
>>====Apache HTTPD logformat====
logformat lets you define custom logformat
==logformat==
%%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
%%
== logformat including orig ip addr and cookies !
%%
LogFormat "%h %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combinedplus
%%
==logformat for referrers and user-agents==
%%
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
%%
==logformat with combined input and output stats==
%%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
%%
==logformat for vhosts==
to create one log file for all vhosts add %v to your access LogFormat
%%
LogFormat "%v %h %l %u %t \"%r\" %>s %b" common
%%
you can then use split-logfile to split the single logfile into separate logs at a later date
NOTE: You cant create 'custom' log formats for your apache httpd error logs
==logformat for form POST data==
You'll need to configure ModDumpIo to log form POST data to your error logs !
----
REFERRERS
{{backlinks}}