Web Servers on Unix and Linux - Clustered apache logging

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > July 2005 > Clustered apache logging





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Clustered apache logging
manchmal@gmail.com

2005-07-13, 6:00 pm

I have a large number of websites that are mounted over nfs.
Everything works, apart from the logging.

I would like to be able to get real time (or near real time) access
logging.

Since multiple apache instances cannot write to the same log file, I
have the following options:

1. vlogger
Write to individual log files then combine them all later.
Very low number of open files
2. syslog-ng
Log over a tcp syslog-ng connection to a central host
3. Something else?

Number 2 seems the best way. Can anyone offer any more suggestions?

Thanks a lot in advance.

Dave Abbott

2005-07-14, 7:47 am

On Wed, 13 Jul 2005 07:41:11 -0700, manchmal wrote:

> I have a large number of websites that are mounted over nfs.
> Everything works, apart from the logging.
>
> I would like to be able to get real time (or near real time) access
> logging.
>


Try logging to a database.. there used to be a mod_log_mysql or
suchlike...

--
Dave Abbott, UNIX SysAdmin |
Department of Computer Science | http://www.dcs.shef.ac.uk/
The university of Sheffield |

manchmal@gmail.com

2005-07-14, 5:51 pm

Thanks for this.
Unfortunately the log files need to stay in text format for this.

fuser9bb@HotPOP.com

2005-07-26, 7:56 am

On 14 Jul 2005 08:05:04 -0700, manchmal@gmail.com wrote:

>Thanks for this.
>Unfortunately the log files need to stay in text format for this.


I'm curious why syslog-ng is fine but not the database solution. Sure,
syslog-ng dumps to a text file, but you could do the same with a
database solution using a script. Since syslog-ng isn't going to
create normal Apache log files you still will need to do some kind of
file massasing I think.

Just curious..

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com