You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Chuck Pierce <ch...@onyxsys.net> on 2001/08/02 01:14:02 UTC
splitlogs
I'm new to the list, so I don't quite know the procedure for doing this
<or even if this is the right list for this>, but I have attached a
program that I think the apache community could benefit from. The
program is self reliant, and will split the apache log files on the fly
(it will also rotate the logs).
----
History:
Our web site is huge. It has one domain and a BUNCH of sub
directories. Each sub directory needed to act as a separate "virtual
host". Because I couldn't have the customelog or transferlog within a
<directory> I created this app. It allows me (using the <directory>
tags) to create a sub directory in www.mycompany.com/subdir and have
it's own logfile.
----
Usage: splitlogs [OPTIONS]... DEFAULT...
Where OPTIONS can be FILE:DIRECTORY:ROTATION or FILE:DIRECTORY
DEFAULT is in the format FILE:ROTATION or FILE
The FILE is the path and name of the actual logfile. The DIRECTORY
is the directory you want split into a separate file. The ROTATION
is the system time at which the log will be rotated. If no
ROTATION time is given, the log will not be rotated and the file
name will remain unchanged. If rotation is used, the log file will
be in the format: FILE.2001_Aug_01_17:55.log
Installation:
Add the following to the httpd.conf:
TransferLog "| splitlogs log-A:/A:86400 log-B:/B log-def
Note: If you have the two directories /a and /a/b, make sure to place
the /a/b before /a. Otherwise all of the /a/b requests would
end up in the wrong logfile.
--
Chuck Pierce Phone: (615) 253-5634
Sr. Systems Administrator Pager: (888) 569-8085
State TN, OIR/Finance Fax: (615) 741-7341
Re: splitlogs [question about procedure]
Posted by Ryan Bloom <rb...@covalent.net>.
There really isn't any process. Basically, you post the app here, and people review
it. If people think it is something we want to add to Apache, then it gets added.
It is important to realize that in general, the Apache group doesn't like to distribute
apps like this. Our goal is to provide a webserver, not to provide tools to help the
webserver. We distribute a few small apps to show what is possible, but we tend to
not add new apps to that list.
I would suggest posting the app to a site like freshmeat or modules.apache.org, or something
like that.
Ryan
On Thursday 02 August 2001 09:06, Chuck Pierce wrote:
> Can someone tell me the procedure for adding new "helper apps" to
> apache? I have an app that I think the apache community might be able
> to use, but I have NO idea on the steps and procedures for getting it
> done.
>
> thanks
>
> - Chuck
>
> Chuck Pierce wrote:
> > I'm new to the list, so I don't quite know the procedure for doing this
> > <or even if this is the right list for this>, but I have attached a
> > program that I think the apache community could benefit from. The
> > program is self reliant, and will split the apache log files on the fly
> > (it will also rotate the logs).
> > <SNIP>
--
_____________________________________________________________________________
Ryan Bloom rbb@apache.org
Covalent Technologies rbb@covalent.net
-----------------------------------------------------------------------------
Re: splitlogs [question about procedure]
Posted by Chuck Pierce <ch...@onyxsys.net>.
Can someone tell me the procedure for adding new "helper apps" to
apache? I have an app that I think the apache community might be able
to use, but I have NO idea on the steps and procedures for getting it
done.
thanks
- Chuck
Chuck Pierce wrote:
>
> I'm new to the list, so I don't quite know the procedure for doing this
> <or even if this is the right list for this>, but I have attached a
> program that I think the apache community could benefit from. The
> program is self reliant, and will split the apache log files on the fly
> (it will also rotate the logs).
> <SNIP>
--
Chuck Pierce Phone: (615) 253-5634
Sr. Systems Administrator Pager: (888) 569-8085
State TN, OIR/Finance Fax: (615) 741-7341