This is our old Q&A Site. Please post any new questions and answers at

I would like to use tshark or some other tool for listening on a network interface, and generate a file for each TCP/UDP stream containing the raw stream data (the same thing I get with "follow stream" in wireshark).

I can do a similar thing using tcpflow. The problem of tcpflow is that it splits the TCP stream in two files: one for each endpoint. So if I capture an HTTP request, I can find the GET in one file, and the 200 OK in another. I want them in the same one.

I can also do a similar thing using tshark like shown here, but only works for existing pcap files, not for live traffic.

asked 27 Nov '14, 05:38

Otacon22's gravatar image

accept rate: 0%

edited 27 Nov '14, 05:39

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 27 Nov '14, 05:38

question was seen: 3,725 times

last updated: 27 Nov '14, 05:39

p​o​w​e​r​e​d by O​S​Q​A