using tcpdump to display XML API requests without headers or ack packets

Posted by Carmageddon on Server Fault See other posts from Server Fault or by Carmageddon
Published on 2012-09-11T13:50:34Z Indexed on 2014/08/22 16:26 UTC
Read the original article Hit count: 233

Filed under:
|
|

I need assistance, I am trying to use tcpdump in order to capture API requests and responses between two servers, so far I have the following command:

tcpdump -iany -tpnAXs0 host xxx.xxx.xxx.xxx and port 6666

My problem is, that the output is still hard to read, because it sends the Headers, and the ack packets.

I would like to remove those and only see the XML bodies.

I tried to use grep -v, but apparently this is all one request, so it filters the entire thing...

Thanks!

© Server Fault or respective owner

Related posts about linux

Related posts about centos5