<div dir="ltr"><div>Greetings,</div><div><br></div><div>I'm attempting to configure a logback application (puppetdb) to log POST data, but I'm not seeing the options at:</div><div><br></div><div><a href="https://logback.qos.ch/manual/layouts.html#AccessPatternLayout">https://logback.qos.ch/manual/layouts.html#AccessPatternLayout</a></div><div><br></div><div>I can get curl to output the POST data via --trace-ascii<br></div><div><br></div><div>puppetdb# curl -H 'Content-type:application/json' -d '{ "query": ["extract", ["certname"], ["and", ["=", "type", "Class"], ["=", "title", "Postgresql::Server"] ] ] }' --trace-ascii - <a href="http://localhost:8080">http://localhost:8080</a><br>/pdb/query/v4/resources                                                                                  <br>== Info:   Trying 127.0.0.1:8080...<br>== Info: Connected to localhost (127.0.0.1) port 8080 (#0)                                               <br>=> Send header, 153 bytes (0x99)<br>0000: POST /pdb/query/v4/resources HTTP/1.1<br>0027: Host: localhost:8080<br>003d: User-Agent: curl/7.88.1<br>0056: Accept: */*                                   <br>0063: Content-type:application/json<br>0082: Content-Length: 111                           <br>0097:                                               <br>=> Send data, 111 bytes (0x6f)<br>0000: { "query": ["extract", ["certname"], ["and", ["=", "type", "Clas                                   <br>0040: s"], ["=", "title", "Postgresql::Server"] ] ] }                                                    <br><= Recv header, 17 bytes (0x11)<br>0000: HTTP/1.1 200 OK                               <br><= Recv header, 37 bytes (0x25)<br>0000: Date: Mon, 17 Jun 2024 19:49:24 GMT<br><= Recv header, 46 bytes (0x2e)<br>0000: Content-Type: application/json;charset=utf-8<br><= Recv header, 35 bytes (0x23)<br>0000: Vary: Accept-Encoding, User-Agent<br><= Recv header, 20 bytes (0x14)<br>0000: Content-Length: 43                            <br><= Recv header, 2 bytes (0x2)<br>0000:                                               <br><= Recv data, 43 bytes (0x2b)<br>0000: [{"certname":"<a href="http://foo.example.com">foo.example.com</a>"}]<br>[{"certname":"<a href="http://foo.example.com">foo.example.com</a>"}]== Info: Connection #0 to host localhost left intact</div><div><br></div><div>I did add the '%fullRequest' option:</div><div><br></div><div><encoder><br>    <pattern>%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" %D %header{X-Uncompressed-Length} %fullRequest</pattern><br></encoder></div><div><br></div><div>...but I'm not seeing the POST data:</div><div><br></div><div>127.0.0.1 - - [17/Jun/2024:14:49:24 -0500] "POST /pdb/query/v4/resources HTTP/1.1" 200 43 "-" "curl/7.88.1" 12 - POST /pdb/query/v4/resources HTTP/1.1<br>Content-type: application/json<br>Accept: */*<br>User-Agent: curl/7.88.1<br>Host: localhost:8080<br>Content-Length: 111</div><div><br></div><div>Does anyone have any ideas how to see the POST data via logback?</div><div><br></div><div>Thanks for the help!</div><div><br></div><div>-m<br></div></div>