This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Automatically exporting csv info

0

Hello everyone,

I'm running a windows version of wireshark (if this matters) and I would like to set up something so that I can export csv packet info automatically to a directory (every 30-60s for a few minutes) so that a program I have can run some code on it afterwards.

I figure I need to write some kind of script to do this and was wondering if this was possible to insert something into the program, but the caveat being that I haven't done anything with scripting until this point. If someone could point me in the right direction of where to apply a script in the program and such, it would be greatly appreciated!

Thanks, Nathan

asked 22 Apr '15, 09:25

NathanR's gravatar image

NathanR
6112
accept rate: 0%

Are you planing to generate CSV file at which time? a) at the time of live capturing b) or in generated PCAP file?

(25 Apr '15, 10:14) ankit

I suppose ideally it would generate at live capturing until a few minutes had passed and then everything would stop. I only am concerned about the interactions of one specific address and my home pc address, so I don't need to worry about all the interactions being captured.

(27 Apr '15, 07:49) NathanR

One Answer:

1

You could look into using tshark with option -T and either fields or PDML, depending on your application/script you intend to write.

answered 28 Apr '15, 07:57

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%