Theory suggests to me that this isn't necessarily the best approach; load balancing 
should be based around server response times and traffic volume rather than requests.

That said, if all you have is those logfiles, you'll need the hostname of the server 
in there; that's what makes the vhost report work.  You can use VHOSTREPALIAS to 
change the name of the virtual hosts provided they're in the file already, otherwise 
you'll have to write some <insert-your-favourite-programming-language-here> code to 
add them in.


SC

*********** REPLY SEPARATOR  ***********

On 30/09/2004 at 07:10 paul_da_programmer wrote:

>Is there any way I can get analog to differentiate
>traffic based on which file the data is in? Our system
>has four parallel servers and I create the following
>reports every day:
>- one individual report for each of the four servers
>- an overall report for all traffic
>For the overall report I concatenate the four files
>into one and run analog.
>
>What I'd like to be able to do in the overall report
>(the concatenated one) is offer additional information
>on load balancing, that is report on the amount of
>traffic that was handled by each of the four legs. 
>For example:
>Total Requests handled = 100,000
>Requests handled by AP3 = 40,000
>Requests handled by AP4 = 20,000
>Requests handled by AP5 = 20,000
>Requests handled by AP6 = 20,000
>Even better would be if it were broken down by request
>type, but overall requests would be sufficient.
>
>I thought I could do this with the virtual domain
>report but I can't seem to get it to work.
>
>What I've done is this:
>I specified the following for LOGFILE
>LOGFILE "D:\analog\temp\AP3\SUM\sum.log"
>http://www.ap3.com
>LOGFILE "D:\analog\temp\AP4\SUM\sum.log"
>http://www.ap4.com
>LOGFILE "D:\analog\temp\AP5\SUM\sum.log"
>http://www.ap5.com
>LOGFILE "D:\analog\temp\AP6\SUM\sum.log"
>http://www.ap6.com
>where "www.apX.com" is an artifical way of making the
>requests from each server look different.
>
>When I run analog I get this error:
>d:\analog\analog.exe: Warning L: logfiles
>D:\analog\temp\AP3\SUM\sum.log and
>  D:\analog\temp\AP4\SUM\sum.log overlap: possible
>double counting
>
>*** And the counts are all off (they're way too
>high)***
>
>Just as a check, if I recombine the 4 files back into
>one and change LOGFILE back:
>
>LOGFILE "D:\analog\temp\total.log"
>
>OR if I remove the virtual host:
>
>LOGFILE "D:\analog\temp\AP3\SUM\sum.log" 
>LOGFILE "D:\analog\temp\AP4\SUM\sum.log" 
>LOGFILE "D:\analog\temp\AP5\SUM\sum.log" 
>LOGFILE "D:\analog\temp\AP6\SUM\sum.log" 
>
>the counts are correct again. But in both cases, I
>never get a correct "virtual domain report".
>
>All I can come up with to get this to work is used sed
>to prepend the IP of each of the servers to the front
>of the line and then define a custom LOGFORMAT to
>include this new field. But since I already have each
>servers' log file separated, this seems needless. 
>Anyone have any ideas? I should add that analog is an
>extremely awesome product BTW!
>Thanks,
>--Paul
>
>
>
>
>
>
>
>
>               
>__________________________________
>Do you Yahoo!?
>Read only the mail you want - Yahoo! Mail SpamGuard.
>http://promotions.yahoo.com/new_mail 
>+------------------------------------------------------------------------
>|  TO UNSUBSCRIBE from this list:
>|    http://lists.meer.net/mailman/listinfo/analog-help
>|
>|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
>|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
>+------------------------------------------------------------------------


--
S Collis <[EMAIL PROTECTED]>  ICQ:9560926  MSN:[EMAIL PROTECTED]
Chief web donkey, "The Directory Of Everything Most Useful": http://www.emudir.com/


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to