Is it possible to log the web traffic for a paricular incoming/outgoing https request i.e.’ Bytes Send’ and ‘Bytes received’. The logging is required to be done by either iRules or BIG-IP
Please let me know if anyone has information on this requirement.
The sc-bytes (Bytes sent)= 1698 and cs-bytes (Bytes Received)= 294 in the IIS logs is different from RequestPayLoadLength: 0 → ResponsePayLoadLength: 1210 logged in FS logs
I think the discrepancy you’re seeing is because the HTTP::payload length command is giving the bytes of the payload. It does not include the length of the headers. So you’re seeing the length of the request as 0 because there were only headers in the request.
I can’t think of a simple method for getting a length of the HTTP headers and data per request though. Maybe a statistics profile would help? Does anyone else have ideas?
But there doesn’t seem to be a way to get the response headers.
And Joe, I clients can send HTTP requests and servers can send responses with payloads without sending a Content-length (ie chunked encoded requests/responses). Also, the Content-Length headers don’t include the HTTP header lengths.
Is there a way to get the HTTP response headers in one string, like HTTP::request for requests?