Forum Moderators: phranque

Message Too Old, No Replies

Apache log file merging

can I merge logs from virtual domains

         

mack

7:46 am on Nov 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I run all my subdomains as virtual hosts on an apache server.

My log files are written to /home/username/logs/access.log

Les assume I create 3 subdomains. I then have...

/home/user1/logs/access.log
/home/user2/logs/access.log
/home/user3/logs/access.log

I use awstats to render the data and this means I have to view several different pages of stats.

What I would liek to be able to do is keep the existing system, but also merge the log files to another location, that I can then analyze (collectivly)

Can anyone see a way this can be done.

Thanks in advance.

Mack.

dcrombie

3:25 pm on Nov 26, 2004 (gmt 0)



Do you want to 'merge', or 'splice' the files. You can combine them into one file quite easily, but I imagine most logfile analyzers rely on the requests being in some kind of chronological order?

mack

3:39 pm on Nov 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thanks for the reply dcrombie,

yea I assune then need to be merged. It would be great if I could configure my virtuak hosts to writ their logs to 2 different locations. then every log would be written as normal and I could create a seperate location for a combined log. Does anyone know if this sort of set up is possible?

Mack.