You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mo...@polarisFT.com on 2013/10/07 08:57:18 UTC
parse mod_jk log
Hi,
I have enable 'debug' mode and find such lines in mode_jk log.
There are other types of lines also
Mon Oct 07 10:39:34 2013][993:1188796736] [debug] service::jk_lb_worker.c
(1157): service worker=node2 route=node2\par
Can I know how I should parse this log to prove that connections are
actually routed to two nodes( two tomcat instances) properly ? What line
should I be looking for ?
I plan to use 'R' to graph.
Thanks,
Mohan
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polarisFT.com
Re: parse mod_jk log
Posted by Daniel Mikusa <dm...@gopivotal.com>.
On Oct 7, 2013, at 7:50 AM, mohan.radhakrishnan@polarisFT.com wrote:
> Ok. I am already doing that. I thought mod_jk logs can be parsed using
> something like awstats.
Probably. My point was why bother, if you already have that information in the access logs. Especially if you have to increase the log level to debug which would increase the size of your logs.
Having said that, I have no idea what your requirements are for this project. I was just throwing out there in case you hadn't considered the access logs. If it's something you've looked at or if it won't work for your requirements, feel free to ignore my outburst.
Dan
>
>
> Mohan
>
>
>
> From: Daniel Mikusa <dm...@gopivotal.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Date: 10/07/2013 04:21 PM
> Subject: Re: parse mod_jk log
>
>
>
> On Oct 7, 2013, at 2:57 AM, mohan.radhakrishnan@polarisFT.com wrote:
>
>> Hi,
>> I have enable 'debug' mode and find such lines in mode_jk log.
>> There are other types of lines also
>>
>> Mon Oct 07 10:39:34 2013][993:1188796736] [debug]
> service::jk_lb_worker.c
>> (1157): service worker=node2 route=node2\par
>>
>> Can I know how I should parse this log to prove that connections are
>> actually routed to two nodes( two tomcat instances) properly ?
>
> Could you just look at the access logs on the two Tomcat nodes? Those
> would certainly show when a request is routed to each node (i.e. node-aa
> will have only records for requests sent to node-a and vise versa). That
> would also be better than running with debug log level enabled all the
> time.
>
> Dan
>
>> What line
>> should I be looking for ?
>>
>> I plan to use 'R' to graph.
>>
>> Thanks,
>> Mohan
>>
>>
>> This e-Mail may contain proprietary and confidential information and is
> sent for the intended recipient(s) only. If by an addressing or
> transmission error this mail has been misdirected to you, you are
> requested to delete this mail immediately. You are also hereby notified
> that any use, any form of reproduction, dissemination, copying,
> disclosure, modification, distribution and/or publication of this e-mail
> message, contents or its attachment other than by its intended recipient/s
> is strictly prohibited.
>>
>> Visit us at http://www.polarisFT.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
> This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
>
> Visit us at http://www.polarisFT.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: parse mod_jk log
Posted by André Warnier <aw...@ice-sa.com>.
Don't top post.
>
>
> From: Daniel Mikusa <dm...@gopivotal.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Date: 10/07/2013 04:21 PM
> Subject: Re: parse mod_jk log
>
>
>
> On Oct 7, 2013, at 2:57 AM, mohan.radhakrishnan@polarisFT.com wrote:
>
>> Hi,
>> I have enable 'debug' mode and find such lines in mode_jk log.
>> There are other types of lines also
>>
>> Mon Oct 07 10:39:34 2013][993:1188796736] [debug]
> service::jk_lb_worker.c
>> (1157): service worker=node2 route=node2\par
>>
>> Can I know how I should parse this log to prove that connections are
>> actually routed to two nodes( two tomcat instances) properly ?
>
> Could you just look at the access logs on the two Tomcat nodes? Those
> would certainly show when a request is routed to each node (i.e. node-aa
> will have only records for requests sent to node-a and vise versa). That
> would also be better than running with debug log level enabled all the
> time.
>
mohan.radhakrishnan@polarisFT.com wrote:
> Ok. I am already doing that. I thought mod_jk logs can be parsed using
> something like awstats.
>
>
> Mohan
>
The mod_jk log, like the Apache httpd and Tomcat error logs are normally meant for
debugging problems, not for long-term usage or statistics.
Writing logs is quite expensive from a server point of view, that's why the recommendation
and default "logging levels" are set low.
A hint is the "debug" level that you had to set to get your original mod_jk log.
Error logs will generally exhibit multiple interleaved lines from different children or
threads of the server handling multiple parallel requests, making it quite time-consuming
to bring back together what concerns a single request e.g.
Access logs on the other hand are designed to be analysed for statistical/graphical
purposes, that's why they tend to follow a generic format easy to parse with awstats and
similar programs. That is also why they generally tell you all you need to know about one
request, in one single line : quick to write, easy to parse later.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: parse mod_jk log
Posted by Mladen Turk <mt...@apache.org>.
On 10/07/2013 01:50 PM, mohan.radhakrishnan@polarisFT.com wrote:
> Ok. I am already doing that. I thought mod_jk logs can be parsed using
> something like awstats.
>
Take a look at
http://tomcat.apache.org/connectors-doc/reference/apache.html
JkRequestLogFormat will format the line as you like
You can also use mod_log_config directly.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: parse mod_jk log
Posted by mo...@polarisFT.com.
Ok. I am already doing that. I thought mod_jk logs can be parsed using
something like awstats.
Mohan
From: Daniel Mikusa <dm...@gopivotal.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Date: 10/07/2013 04:21 PM
Subject: Re: parse mod_jk log
On Oct 7, 2013, at 2:57 AM, mohan.radhakrishnan@polarisFT.com wrote:
> Hi,
> I have enable 'debug' mode and find such lines in mode_jk log.
> There are other types of lines also
>
> Mon Oct 07 10:39:34 2013][993:1188796736] [debug]
service::jk_lb_worker.c
> (1157): service worker=node2 route=node2\par
>
> Can I know how I should parse this log to prove that connections are
> actually routed to two nodes( two tomcat instances) properly ?
Could you just look at the access logs on the two Tomcat nodes? Those
would certainly show when a request is routed to each node (i.e. node-aa
will have only records for requests sent to node-a and vise versa). That
would also be better than running with debug log level enabled all the
time.
Dan
> What line
> should I be looking for ?
>
> I plan to use 'R' to graph.
>
> Thanks,
> Mohan
>
>
> This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are
requested to delete this mail immediately. You are also hereby notified
that any use, any form of reproduction, dissemination, copying,
disclosure, modification, distribution and/or publication of this e-mail
message, contents or its attachment other than by its intended recipient/s
is strictly prohibited.
>
> Visit us at http://www.polarisFT.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polarisFT.com
Re: parse mod_jk log
Posted by Daniel Mikusa <dm...@gopivotal.com>.
On Oct 7, 2013, at 2:57 AM, mohan.radhakrishnan@polarisFT.com wrote:
> Hi,
> I have enable 'debug' mode and find such lines in mode_jk log.
> There are other types of lines also
>
> Mon Oct 07 10:39:34 2013][993:1188796736] [debug] service::jk_lb_worker.c
> (1157): service worker=node2 route=node2\par
>
> Can I know how I should parse this log to prove that connections are
> actually routed to two nodes( two tomcat instances) properly ?
Could you just look at the access logs on the two Tomcat nodes? Those would certainly show when a request is routed to each node (i.e. node-aa will have only records for requests sent to node-a and vise versa). That would also be better than running with debug log level enabled all the time.
Dan
> What line
> should I be looking for ?
>
> I plan to use 'R' to graph.
>
> Thanks,
> Mohan
>
>
> This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
>
> Visit us at http://www.polarisFT.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org