|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CRONOLOG: CRONOLOG website launch imminent
Hi Ellis
Thanks for your reply and for letting me include your organization in
our user list. I hope you don't mind me copying the mailing list on
my reply -- the question you raise about cronolog processes may be of
interest to others.
As to the way forward for cronolog, I did experiment with a single
process, but that added a level of complexity that I felt was
unnecessary. I have created a beta version of a cronolog module, and
will be releasing that next week. I am also thinking of allowing
cronolog to inspect the data that it reads, for example to extract the
values of specified fields and use them in constructing filenames from
templates. This would allow the virtual hostname to be included in
log file entries to control the splitting of log files and would work
also with mass virtual hosting. The syntax I am toying with is
illustrated in the following example:
LogFormat "%v ..." vfmt
CustomLog "|/.../cronolog -options "/.../logs/%-1/%Y-%m-%d-access.log" vfmt
The log format includes the virtual hostname as the first field and
the invocation of cronolog includes the %-1 specifier, which means
insert the first field of each log entry and suppress it (a plain %1
without the minus sign would mean use the first field but do not
suppress the data from the output). I am thinking of using specifiers
%1 through %9, %{10}, ... for specifying positional fields as this
syntax does not conflict with existing strftime specifiers.
Allowing cronolog to split logs based on data content would be an
alternative to the cronolog module (some people might prefer the one
approach over the other). If a common CustomLog directive was
specified in the global section of the httpd.conf then all virtual
hosts could log to a single cronolog process. Having multiple log
files open would require cacheing of log file descriptors, but this is
needed by the module version too and the code could be common.
I can see two potential problems with splitting log entries on log
data. The first is the security issue, in that if the field content
is used blindly in building file names then that opens the way for
attackers to attempt to write to arbitary directories, if not to
specific files. A solution to this problem might be to only allow
certain characters in the fields, mapping at least the directory
separator character to something else, such as a hyphen, and
disallowing the strings "." and "..", mapping these to say "-." and
"-..". The second issue is in splitting the data into fields. For
web logs one could regard fields as being single words or strings
enclosed in double quotes or square brackets, but one might want this
to be configurable. There are a number of design issues that need
some further thought.
Regards
Andrew
--
Andrew Ford, Director Ford & Mason Ltd Tel: +44 1531 829900
A.Ford@xxxxxxxxxxxxxxxx South Wing, Compton House Fax: +44 1531 829901
http://ford-mason.co.uk Compton Green, Redmarley Mobile: +44 7785 258278
http://pauntley-press.co.uk Gloucester, GL19 3JB
http://refcards.com Great Britain
Ellis Teer writes:
> Andrew,
>
> I have been using cronolog for some time now. I would like to help
> out by having our organization included in your user list. It's a
> great add on to Apache. Thank you for making it available.
>
> SitePen, Inc.
> http://www.sitepen.com/
> contact@xxxxxxxxxxx
> SitePen, Inc. provides dynamic and innovative web sites, hosting
> services, and back-end solutions for our customers and their
> audiences.
>
> -Ellis Teer
> www.sitepen.com
>
> BTW - did the ideas on having a single process for all log entries
> instead of one process for each entry move forward? I can still help
> with testing on one of our W2K platforms if you need it.
>
>
> On Fri, 11 Jan 2002 12:22:20 +0000 (GMT), andrew@xxxxxxxxxxxxxxxxxx
> wrote:
> >I have been working over Christmas on tidying up, reorganizing and
> >redesigning the cronolog web site. It is now just about ready to go
> >up -- I am planning to do that by the end of next week (2002-01-20)
> >at the latest.
> >
> >The new site currently contains the following pages:
> >
> > * Home page
> > * Features
> > * Usage
> > * FAQ
> > * Mailing list
> > * Feedback
> > * Plans
> > * Wishlist
> > * History
> > * Users
> > * Links
> > * download section
> >
> >The Users page will list organizations and sites that use cronolog.
> >Currently this list just contains our sites (ford-mason.co.uk,
> >pauntley-press.co.uk and refcards.com). If you would like your
> >organization/web site to be included please email me, giving the
> name
> >of the web site and the URL (if you want the name to be a link to
> >your
> >site) and optionally a one or two line description of the site
> >(e.g. Pauntley Press: A small independent publisher of cookery
> >books).
> >I shall be trying to obtain sponsorship and/or advertising for the
> >site to generate some income to pay for my time to further develop
> >cronolog. An extensive user list would help in finding a sponsor.
> >However we will of course NOT divulge email addresses of the
> >cronolog-users mailing list.
> >
> >The links section will contain links to logfile-related sites, such
> >as
> >log file analyzers. Currently I have analog, accesswatch,
> pwebstats,
> >webalizer, webtrends and wwwstats. If you can suggest further
> >appropriate links I would be happy to include them.
> >
> >I have created a basic FAQ by going back over the mails I have
> >received over the years. If you have any thoughts about what should
> >go in this section, check when the site goes live and then if its
> not
> >answered there email me. Ditto for the wishlist.
> >
> >I have created a tar file of the beta Apache cronolog module and it
> >is
> >included on the new site. This version should be regarded as such
> --
> >as a beta version and not for production without a lot more testing.
> >That said I have been using it on a low-traffic internal website
> with
> >a number of virtual hosts for about six months now without any
> >problems.
> >
> >Once the new cronolog web site (and the refcards.com web site) is up
> >and running and the first flush of problems have been sorted out I
> >shall take another look at the cronolog software. I would like to
> >get the outstanding issues with cronolog including the Apache module
> >version sorted out during the first half of this year.
> >
> >I will post an announcement here when I make the new web site live.
> >In the meantime I would appreciate entries for the user list and
> >links.
> >
> >Wishing everyone a happy 2002.
> >
> >Andrew Ford
>
>
|