Tshark output file problem, saving to csv or txt

asked 2018-01-22 14:24:41 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

How to save tshark output to files? I need to capture traffic after every 5 second and save it to csv or txt file. I try this code

tshark -i 2 -T fields -e frame.number-e frame.time_delta -e frame.len -b duration:5 -E header=y -E quote=d -E occurrence=f -w file.txt > test.txt

I need to create a lot of files but using -w looks bad.

edit retag flag offensive close merge delete