[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache & log files



On Wed, Nov 03, 2004 at 11:11:13PM +0100, Marek Podmaka wrote:
> Hello,
> 
>   I have apache 1.3 webserver hosting about 150 domains (more than 400
>   virtual hosts). Now I have separate error log for each domain
>   (something.sk) and separate combined log for each virtual host (for
>   example www.abcq.sk and new.abcq.sk). This has many positives for
>   me: easy to find some data related to each virtual host and that I
>   can make seaparate statistics for each virtual host. I use awstats.
>   And now the bad side - the number of open files in each apache
>   process is more than 500 just for these log files. It's no problem
>   for now, but with more domains in future it will hit the 1024 per
>   process limit of open files.
> 
>   3) Or you maybe use some other solution to this problem?
> 

I personally prefer a single CustomLog file with a suitable domain
prefix for every domain. That allows a nice grepping to extract 
information and avoid resources wasting. For ErrorLog you can pipe
to a suitable program which does the same.

-- 
Francesco P. Lovergine



Reply to: