Open main menu

Changes

add logging
See [[Private:QualityBox/farm]] for the filesystem layout
 
=== Logging ===
https://httpd.apache.org/docs/current/programs/split-logfile.html
 
<source lang="apache">
# instead of this
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog "${APACHE_LOG_DIR}/access.log" vcommon
# use %V, not %v when using mod_vhost_alias
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_plus_vhost
CustomLog "${APACHE_LOG_DIR}/access.log" combined_plus_vhost
</source>
 
Execute from the command line (move to cron) <ref>Note that you need the apache2-utils package in Ubuntu to get split-logfile</ref>
<source lang="bash">
split-logfile < access.log
</source>
== File Descriptors ==
4,558

edits