I don't think there's any way to register the TeeFilter without making 
changes to the library, trapperkeeper-webserver-jetty9 
<https://github.com/puppetlabs/trapperkeeper-webserver-jetty9>, that Puppet 
Server uses to integrate the Jetty web server. If you just wanted to get 
the response body but didn't need the full request body, you could turn on 
"trace" level logging for the "puppetlabs.ring-middleware.core" namespace 
in the */etc/puppetlabs/puppetserver/logback.xml *file:

<logger name="puppetlabs.ring-middleware.core" level="trace"/>

With that in place you'd see the response body appear in the 
*/etc/puppetlabs/puppetserver/puppetserver.log* file, like this:

2016-12-21 13:21:08,327 TRACE [qtp993744537-38] [p.r.core] Computed response
: {:status 200, :headers {Content-Type text/pson, X-Puppet-Version 4.8.1}, 
:body 
{"tags":["settings"...

I think we could add some functionality to the 
trapperkeeper-webserver-jetty9 library to enable integration with the 
logback TeeFilter.  If you are interested in pursuing this further, would 
you mind submitting a request for this in a SERVER or TK project ticket at 
https://tickets.puppetlabs.com?

On Wednesday, December 21, 2016 at 2:44:38 AM UTC-8, Thomas Müller wrote:
>
> hi
>
> I thought about capturing catalog requests with puppetserver to gather 
> data for a simple load test. 
>
> I've configured another logback logfile* with pattern 
> %fullRequest%n%n%fullResponse - it then logs headers but no content. 
> logback docs** talk about enabling a TeeFilter to enable those. Is this 
> somehow possible to activate this for a non-java/clojure/jetty/logback 
> developer?
>
> - Thomas
>
>
> * https://docs.puppet.com/puppetserver/latest/config_logging_advanced.html
> ** http://logback.qos.ch/recipes/captureHttp.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/28178329-f0dc-498c-a406-0960c3bb6e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to