I have a .pcap file which displays time (i.e. Arrival Time (for Wireshark and frame.time field for Tshark) in the top/physical/Frame layer) in the Apr 3, 2015 16:58:46.461897000 PDT.
I want to get this time in ISO format, like 2007-09-01 04:10:58.
Please note that I am not going to take a capture. I already have a capture file. I want to use Tshark to extract the field frame.time (which corresponds to Arrival Time in the top network layer in Wireshark) in a format like 2007-09-01 04:10:58, rather than a format like Apr 3, 2015 16:58:46.461897000 PDT.
Can I do that? How?
asked 28 Sep '16, 23:59

Jesss
51●14●17●20
accept rate: 0%
Does this answer lack some information?
@sindy Yes, that solution involves adding an extra column and then taking the capture again. I can't take the capture again. I already have the captured data in the form of a .pcap file. Using Tshark, I have to read it and output the time in ISO format. (something like
tshark -r myFile.pcap -T field -e frame.time > output.csv)The capture is not taken again. The Wireshark gui is used to add a column to the preferences which is then available for use by tshark.
If you're not specifying individual fields you can use
-t ador-t udas shown in the tshark man page.Running tshark with
-r existing_capture_file_nameinstead of-i interface_namemakes tshark read the existing file instead of taking a live capture and process it, according to the rest of the command line parameters, the same way as if it was a live capture.