junamai2000/mod_log_rotate_subdir
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
mod_log_rotate_subdir is modified version of mod_log_rotate that enables to create sub directory.
httpd.conf
LoadModule log_rotate_module modules/mod_log_rotate.so
RotateLogs On
RotateLogsLocalTime On
CustomLog "/var/log/httpd/site/%Y/%m/access.log.%d"
RotateLogsHardLink "/var/log/httpd/site/%Y/%m/access.log.%d" "/var/log/httpd/site/access.current.log"
LogFormat "{\"date\": \"%t\", \"tm\": \"%{%s}t\", \"apache\": {\"client\": \"%a\", \"server\": \"%A\", \"duration\": %T.%D, \"request\":\"%r\",\"status\": %s, \"byte\": %b, \"path\": \"%U%q\", \"method\": \"%m\", \"referrer\": \"%{Referer}i\", \"ua\": \"%{User-Agent}i\"}, \"cookie\":{}, \"tracking\": %{tracking}j, \"application\": %{application}J }" apache_json