Thanks guys!

I added the following two lines into my server.xml file.

<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
prefix="my_access_log." suffix=".txt" pattern="common"/>

I restart the tomcat, but I don't see the post parameters being added to 
my_access_log file.

How to make it work?


--- On Thu, 5/15/08, Peter Lin <[EMAIL PROTECTED]> wrote:

> From: Peter Lin <[EMAIL PROTECTED]>
> Subject: Re: Access Log Sampler
> To: "JMeter Users List" <[email protected]>
> Date: Thursday, May 15, 2008, 7:20 AM
> as long as it follows normal get format
> 
> param=value&param2=value
> 
> 
> 
> On Thu, May 15, 2008 at 8:17 AM, sebb
> <[EMAIL PROTECTED]> wrote:
> > I've just had a look at the code, and it does
> handle POST requests, so
> > if the POSTs don't have bodies, the Access Log
> Sampler should work OK.
> >
> > @Peter: what format do the request parameters have to
> be in for the
> > sampler to pick them up?
> >
> > On 15/05/2008, Peter Lin <[EMAIL PROTECTED]>
> wrote:
> >> What I've done in the past with tomcat is to
> write a request filter to
> >>  dump the request parameters into the log.  in
> some cases, you may not
> >>  want to do that for security reasons if
> there's sensitive data.
> >>
> >>
> >>  peter
> >>
> >>
> >>  On Thu, May 15, 2008 at 6:53 AM, sebb
> <[EMAIL PROTECTED]> wrote:
> >>  > On 14/05/2008, john wu
> <[EMAIL PROTECTED]> wrote:
> >>  >> Hi All,
> >>  >>
> >>  >>  Does Access Log Sampler support POST
> request in the log file?
> >>  >
> >>  > No, because in general the access log does
> not contain all the
> >>  > information needed to recreate the request -
> for example as far as I
> >>  > know the access log will never contain
> details of the POST body.
> >>  >
> >>  >> How to set it up? In my log file, I have
> many POST request and send different parameters for each
> post request, do I have to pass all these parameters in
> HTTP Request Default?
> >>  >>
> >>  >
> >>  > That won't work. Defaults are fixed
> values.
> >>  >
> >>  >>  Thanks
> >>  >>
> >>  >>
> >>  >>
> >>  >>
> >>  >> 
> ---------------------------------------------------------------------
> >>  >>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>  >>  For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>  >>
> >>  >>
> >>  >
> >>  >
> ---------------------------------------------------------------------
> >>  > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>  > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>  >
> >>  >
> >>
> >> 
> ---------------------------------------------------------------------
> >>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>  For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to