Re: logging input and output HTTP message payload

2015-06-18 Thread Frederik Nosi
Some more info, On 06/18/2015 06:00 PM, Frederik Nosi wrote: Hi Christopher, On 06/18/2015 05:55 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frederik, On 6/17/15 8:10 AM, Frederik Nosi wrote: It helps only with HTTP though, no HTTPS or at least not easily.

Re: logging input and output HTTP message payload

2015-06-18 Thread Frederik Nosi
Hi Christopher, On 06/18/2015 05:55 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frederik, On 6/17/15 8:10 AM, Frederik Nosi wrote: It helps only with HTTP though, no HTTPS or at least not easily. All you need is the server's TLS key and Wireshark will look

Re: logging input and output HTTP message payload

2015-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Milinda, On 6/17/15 5:10 AM, Milinda Perera wrote: > I need to log HTTP payload content for debugging purposes. > Following are my findings: > > 1. Using HTTP message content Access Log Valve [1] and Extended > Access Log Valve [2] But it does not

Re: logging input and output HTTP message payload

2015-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frederik, On 6/17/15 8:10 AM, Frederik Nosi wrote: > It helps only with HTTP though, no HTTPS or at least not easily. All you need is the server's TLS key and Wireshark will look directly at the HTTP conversation. This is a skill worth developing,

Re: logging input and output HTTP message payload

2015-06-17 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/2015 11:32 AM, André Warnier wrote: > Just to make sure.. > > Milinda Perera wrote: >> Hi all, >> >> Thanks for suggestions, >> >> Actually I want to log all HTTP / HTTPS requests from client >> applications to my Tomcat server and the Respo

Re: logging input and output HTTP message payload

2015-06-17 Thread André Warnier
Just to make sure.. Milinda Perera wrote: Hi all, Thanks for suggestions, Actually I want to log all HTTP / HTTPS requests from client applications to my Tomcat server and the Response sent back to the client. And logging requests and payloads are not target specific application running in the

Re: logging input and output HTTP message payload

2015-06-17 Thread Frederik Nosi
If you have this: 1) Tomcat listening in HTTP, not HTTPS 2) ssh access to the machine 3) administrator access to the machine and are on Linux (or Unix in general, but my command is linux specific) do this as root: tcpdump -nnpi any -s0 -vvv -w /tmp/dump.pcap port 8080 After the request you

Re: logging input and output HTTP message payload

2015-06-17 Thread Milinda Perera
Hi all, Thanks for suggestions, Actually I want to log all HTTP / HTTPS requests from client applications to my Tomcat server and the Response sent back to the client. And logging requests and payloads are not target specific application running in the Tomcal server, which means all the request t

Re: logging input and output HTTP message payload

2015-06-17 Thread André Warnier
Frederik Nosi wrote: It helps only with HTTP though, no HTTPS or at least not easily. While we are at this, are you trying to debug a SOAP / REST connection from your application running on Tomcat to another server or a connection coming from outside to your Tomcat? On 06/17/2015 11:16 AM,

Re: logging input and output HTTP message payload

2015-06-17 Thread Frederik Nosi
It helps only with HTTP though, no HTTPS or at least not easily. While we are at this, are you trying to debug a SOAP / REST connection from your application running on Tomcat to another server or a connection coming from outside to your Tomcat? On 06/17/2015 11:16 AM, Mark Thomas wrote: On

Re: logging input and output HTTP message payload

2015-06-17 Thread Mark Thomas
On 17/06/2015 10:10, Milinda Perera wrote: > Hi, > > I need to log HTTP payload content for debugging purposes. Use Wireshark. That has the added benefit of not having any unwanted side-effects on your application. Mark - To u

logging input and output HTTP message payload

2015-06-17 Thread Milinda Perera
Hi, I need to log HTTP payload content for debugging purposes. Following are my findings: 1. Using HTTP message content Access Log Valve [1] and Extended Access Log Valve [2] But it does not provide functionality to log HTTP payload 2. Then I tried by changing *org.apache.coyote.level