By using %{<nomeAttributeRequest>}r  is also another way to try

Cordialement / Best regards

Jean-Louis Pasturel

-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] 
Envoyé : vendredi 26 février 2010 09:13
À : 'JMeter Users List'
Objet : RE: How to configure Tomcat to log POST data?

 
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalin
a/valves/AccessLogValve.html

Perhaps with query String  %q pattern. To be tested ...

Cordialement / Best regards

Jean-Louis Pasturel

-----Message d'origine-----
De : Janine Sisk [mailto:[email protected]] Envoyé : vendredi 26 février
2010 08:20 À : JMeter Users List Objet : Re: How to configure Tomcat to log
POST data?

Maybe I'm missing something, but from reading this:

http://jakarta.apache.org/jmeter/usermanual/jmeter...sslog_sampler_step_by_s
tep.pdf

I was under the impression that in order to sample the access logs, JMeter
needs the POST data to be included in the logs and the common format doesn't
include it.  The Extended format is supposed to, except I can't figure out
how to make it happen.  Or am I totally misunderstanding this?

thanks,

janine

On Feb 25, 2010, at 11:07 PM, <[email protected]> wrote:

> 
> In file server.xml of Tomcat
> In Valve section ( there are some examples commented) set this :
> 
> <Valve
> className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
> prefix="localhost_access_log."
> suffix=".txt"
> pattern="%h %l %u %t &#34;%r&#34; %s %b %S %D"
> resolveHosts="false"
> />
> 
> In the logs directory, Tomcat logs all http or AJP exchanges. The %D 
> pattern gives the duration of the URL in miliis The format in the 
> pattern is Common Log Format ( CLF Format for googling), to adapt with 
> the needs of JMeter
> 
> Cordialement / Best regards
> 
> Jean-Louis Pasturel
> 
> -----Message d'origine-----
> De : Janine Sisk [mailto:[email protected]] Envoyé : vendredi 26 
> février 2010 02:49 À : [email protected] Objet : How to 
> configure Tomcat to log POST data?
> 
> I'm relatively new to Tomcat and brand new to JMeter, and a bit perplexed.
> And yes, I have been RTFMing for several hours now.
> 
> I want to use JMeter's access log sampler, to generate load tests 
> based on real-world usage data:
> 
> http://jakarta.apache.org/jmeter/usermanual/jmeter...sslog_sampler_ste
> p_by_s
> tep.pdf
> 
> But it requires that POST data be logged, and I'm stuck trying to 
> figure out how to do that. It refers you to a page which no longer 
> exists, but the modern version of it appears to be
> 
> http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html
> 
> But it doesn't give any info about POST data. I found the page for the 
> ExtendedAccessLogValve
> 
> http://tomcat.apache.org/tomcat-6.0-doc/api/org/ap...es/ExtendedAccess
> LogVal
> ve.html
> 
> And it looks like if I wanted to capture a particular named parameter 
> I would use x-P(parameter-name) to do it, but that still doesn't help 
> me get them all.
> 
> Is there a way to do this that I'm just not finding?
> 
> Thanks in advance,
> 
> janine
> 
> 
> 
> 
> 
> *********************************
> This message and any attachments (the "message") are confidential and
intended solely for the addressees. 
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration. 
> France Telecom Group shall not be liable for the message if altered,
changed or falsified.
> If you are not the intended addressee of this message, please cancel 
> it
immediately and inform the sender.
> ********************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---
Janine Sisk
President/CEO of furfly, LLC
503-693-6407







*********************************
This message and any attachments (the "message") are confidential and
intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed
or falsified.
If you are not the intended addressee of this message, please cancel it
immediately and inform the sender.
********************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to