Forum Moderators: phranque

Message Too Old, No Replies

Apache 2 log files splitted by date? How?

         

alpacinofr

11:32 am on Jan 1, 2007 (gmt 0)

10+ Year Member



Hi there,

I have setup multiple domains virtual hosts at one apache web server. How can I have multiple access logs for each domain instead one huge file for each domain.

Example: for each day

01012007_host_a.log
02012007_host_a.log
...
etc

Is it depend of Apache server itself or any program for creating stats.

Thank you in advance

jdMorgan

8:35 pm on Jan 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache mog_log_config [httpd.apache.org]. You can use it to either create a per-virtual-server logging directive, or pipe any or all log data to a script, which can then sort it into files any way you like.

Jim