Hi Daniel,

On Tue, Jul 9, 2013 at 7:06 PM, Daniel Mikusa <dmik...@gopivotal.com> wrote:

> On Jul 9, 2013, at 8:42 AM, Supun Malinga <awsmali...@gmail.com> wrote:
>
> > Hi guys,
> >
> > I have a requirement to monitor http request/response logs. We have a
> > embedded Tomcat 7. Could you please point out the options available to do
> > this?.
>
> How about the ExtendedAccessLogValve or RequestDumperFilter?
>
>
> https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Extended_Access_Log_Valve
>
> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Request_Dumper_Filter


Thanks for the info.

>
>
> You could also write a custom Valve or Filter if you have very specific
> needs.
>
>
> > I'm already aware of the Access Log Valve [1]. But it can only log
> separate
> > request headers and query params of the request body..
> > Would like to know if there is any better approach..
>
> Better is subjective.  It's been my experience that the AccessLogValve is
> usually sufficient.
>

Yes correct. I'm actually satisfied with the AccessLogValve, except the
limitation on we have know the request/response header before hand (There
was no option to log all headers). So extending the access log valve should
be able to solve that too..


> What specifically are you trying to log?
>

Requirement is in the case of an issue, we have to have a mechanism for
monitoring log for tracking down the cause. Having the ability to log
request/response is an advantage here..

thanks!


> Dan
>
>
> >
> > [1] tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve
> >
> > Thank you,
> > Supun Malinga
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - sup...@wso2.com <sup...@wso2.com>
mobile - 071 56 91 321

Reply via email to