LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Stats for a webserver

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Stats for a webserver
From: Tomas Ruprich <xruprich@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 21:16:24 +0100
Thu, Dec 22, 2005 ve 09:05:04PM +0100, Tomas Ruprich napsal:
> Thu, Dec 22, 2005 ve 01:26:20PM -0500, Pierre Ancelot napsal:
> > Hey everyone :)
> > 
> > I am wondering how i could get awstats to check my logs on my cluster.
> > I use an LVS-NAT and so, each server's log is stored on it's own disk.
> > So i got one virtual server but a lot of different log files...
> > Any idea how i could implement this ?
> 
> Well, i was realizing something like month ago...
> 
> In apache configuration file on each application server i have this line:
> CustomLog "|/usr/bin/logger -t cluster_access_log" combined env=!dontlog
> 
> and then on log server i have syslog-ng installed, where are these 
> configuration lines:
> destination d_cluster_access_log { file("/var/log/httpd/all_clusters_log"); };
> filter f_cluster_access_log { match("cluster_access_log"); };
> source s_net { udp(); };
> log { source(s_net); filter(f_cluster_access_log); 
> destination(d_cluster_access_log); };
> 
> awstats is very good idea, i use it too :)

I didn't mentioned syslog configuration on application servers, i think it's 
quite simple, but only for order...
into /etc/syslog.conf:
*.*                                              @<syslog_server_IP>

once more Tomyk :)

<Prev in Thread] Current Thread [Next in Thread>