Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Please use the option,

-a duration:time in seconds

, with a buffer for the files (desired) to stop the capture after a certain time. Text files will not be the best recommended option for saving the output, but pcap/pcapng as default standard file format, you may create a CSV file instead with tshark, or transform them later using [editcap] tool in other format (https://www.wireshark.org/docs/man-pages/editcap.html) Ex. editcap -F , look the info page

tshark -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

also better with the dumpcap command, which is on your wireshark installation as well, tshark is calling dumpcap in any case

dumpcap -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

for writting a CSV file with tshark look at this question

Please use the option, -a condition to stop, by time, or number of files, file size, example by time:

-a duration:time in seconds

, with a buffer for the files (desired) to stop the capture after a certain time. Text files will not be the best recommended option for saving the output, but pcap/pcapng as default standard file format, you may create a CSV file instead with tshark, or transform them later using [editcap] tool in other format (https://www.wireshark.org/docs/man-pages/editcap.html) Ex. editcap -F , look the info page

tshark -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

also better with the dumpcap command, which is on your wireshark installation as well, tshark is calling dumpcap in any case

dumpcap -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

for writting a CSV file with tshark look at this question

Please use the option, -a condition to stop, by time, or number of files, file size, example by time:

-a duration:time in seconds

, with a buffer for the files (desired) to stop the capture after a certain time. Text files will not be the best recommended option for saving the output, but pcap/pcapng as default standard file format, you may create a CSV file instead with tshark, or transform them later using [editcap] editcap tool in other format (https://www.wireshark.org/docs/man-pages/editcap.html) Ex. editcap -F , look the info page

tshark -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

also better with the dumpcap command, which is on your wireshark installation as well, tshark is calling dumpcap in any case

dumpcap -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

for writting a CSV file with tshark look at this question

Please use the option, -a condition to stop, by time, or number of files, file size, example by time:

-a duration:time in seconds

, with a buffer for the files (desired) to stop the capture after a certain time. Text files will not be the best recommended option for saving the output, but pcap/pcapng as default standard file format, you may create a CSV file instead with tshark, or transform them later using editcap tool in other format Ex. editcap -F , look the info page

tshark -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

also better with the dumpcap command, which is on your wireshark installation as well, tshark is calling dumpcap in any case

dumpcap -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

for writting a CSV file with tshark look at this question

Please use the option, -a condition to stop, by time, or number of files, file size, example by time:

-a duration:time in secondsseconds (60 seconds) -a duration:60

with a buffer for the files (desired) to stop the capture after a certain time. Text files will not be the best recommended option for saving the output, but pcap/pcapng as default standard file format, you may create a CSV file instead with tshark, or transform them later using editcap tool in other format Ex. editcap -F , look the info page

tshark -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

also better with the dumpcap command, which is on your wireshark installation as well, tshark is calling dumpcap in any case

dumpcap -i 1 -b filesize:175000 -b files:526 -a duration:3600 -w I:\Wiresharklogs\output1.pcapng

for writting a CSV file with tshark look at this question