you could use tcpdump to capture the traffic and a tool like wireshark
to analyze the captures. (easy to implement, difficult to analyze)
or you could use some lua-code to evaluate the reponses and alert on
failures (difficult to implement, easy to analyze)
regards,
mex
2014-04-03 19:42 GMT+02:00 <david.r...@enquora.com>:
> Our application uses an upstream data provider (couchdb) returning responses
> with 500kb mime enclosures (PDFs) that are sometimes being
> corrupted/truncated. We need to monitor requests coming into nginx,
> out-going upstream, and the corresponding response, to debug the problem.
>
> Errors are random, so most traffic will be just noise. Would like to watch
> traffic in real time. Any suggestions on logging within nginx to do this? Or
> is best bet an external packet sniffer in promiscuous mode?
>
> david.