Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Help with custom logs

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
how to add custom headers - hi all Can one add custom headers ( for both request and responses )?? Please provide links the above . I heard that one can do above by using APache thanx in advance

Trying to use custom 404 error page - I have added the following line to my file: 404 forward is a Python program that the server name and forwards a user on to a site-tree of the domain they were looking for. The problem is that it is..

Custom 404 causes problems with cookie - In I added 404 between the /> and tags. In the body I set a cookie called ABC as follows. // Set the ABC cookie, the value where the user's browser is directed after // logging..

Custom Error Pages - Hi All, I am using Apache 2.0.43 / Tomcat 4.1.12 / mod_jk2 , and having no success with using a custom Apache error page (local redirect) or even making plain text For example, in the Apache file httpd: 404 ..

referring page in custom 404 - As part of my 404, I want to offer a link back to the referring page. Doing this makes no sense if there wasn't one. I have: = --> You appear to have typed this URL --> Or maybe..
Author Message
Laura Anderson

External


Since: Nov 17, 2006
Posts: 6



(Msg. 1) Posted: Fri Nov 17, 2006 7:54 pm
Post subject: Help with custom logs
Archived from groups: alt>apache>configuration (more info?)

Hello.

I am looking for some help using the LogFormat and CustomLog
directives to create custom logs. Here is what I am trying to do:

I have a doman called domain.com. Under this domain I have several
directories which host different web pages called web1 and web2. Valid
URLs would be:

www.domain.com
www.domain.com/web1
www.domain.com/web2

I would like to separate the activity of these three addresses into
three separate log files.

I've read a lot of the documentation and I know the %U variable will
probably be what I need, but I can't seem to get the syntax correct so
that requests for these three URLs end up in separate log files.

Can some please help me with the syntax?

Thanks.

Laura

 >> Stay informed about: Help with custom logs 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 2) Posted: Sat Nov 18, 2006 7:57 am
Post subject: Re: Help with custom logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide's right, also logging to multiple files can get nasty, apache
recommend that you log to one file and then use some kind of parser on
it, the same way you dont want to resolve domain names inside the log
file for performance reasons...
you could use a program like awstats which is a perl program that will
show you stats for any number of domains and directories, then you have
rather killed three birds with one stone.

 >> Stay informed about: Help with custom logs 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 3) Posted: Sat Nov 18, 2006 8:44 am
Post subject: Re: Help with custom logs [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 4) Posted: Sat Nov 18, 2006 8:59 pm
Post subject: Re: Help with custom logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Laura,
do you have mod_perl? You dont NEED it, but I would recommend it for
something like this, as it can be quite CPU and memory hungry,
especially as the log file grows into the tens or hundreds of MB.
Personally I decided to set it off statically using cron each night at
00:00, and simply copy the files into a directory for each website, in
case the person who reads the stats gets too interested or decides to
leave the browser up and go to bed. (my server is a poor little p3!)
If you were to give me more info about your setup it might help
diagnosing the error. It can be quite alarming the size of that awstats
conf!
 >> Stay informed about: Help with custom logs 
Back to top
Login to vote
Laura Anderson

External


Since: Nov 17, 2006
Posts: 6



(Msg. 5) Posted: Sat Nov 18, 2006 11:40 pm
Post subject: Re: Help with custom logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 18 Nov 2006 07:57:17 -0800, "shimmyshack" <matt.farey.DeleteThis@gmail.com>
wrote:

>Davide's right, also logging to multiple files can get nasty, apache
>recommend that you log to one file and then use some kind of parser on
>it, the same way you dont want to resolve domain names inside the log
>file for performance reasons...
>you could use a program like awstats which is a perl program that will
>show you stats for any number of domains and directories, then you have
>rather killed three birds with one stone.


I put in AWSTATS. It's a pretty nice program and produces a nice
output. Thanks!

The only problem I have with it is that I can't get it to run from a
browser. I keep getting Internal Server Error.

It runs fine from the command line.

Any ideas? I would like to use the browser update feature to get
real-time statistics.

Laura
 >> Stay informed about: Help with custom logs 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]