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


I need to process pcap files and extract data into csv files, including the protocol name. If I do this via Wireshark, the Protocol column is exactly what I need. However, it's very inconvenient to manually open files and export them. I've tried using TShark and it's great, but the closest thing I've found to the Protoocl is frame.protocols. I don't mind the extra data, but in several files I've tried to open this does not display the needed information. Sometimes I get eth:ip:tcp:data while Wireshark's protocol column will display the protocol name accurately.

Anything I'm missing?


asked 31 Jul '13, 09:51

vadgros's gravatar image

accept rate: 0%

Use -e col.Protocol. The col prefix is short for column, then the column name with the same case as is shown in Wireshark.

permanent link

answered 31 Jul '13, 10:07

grahamb's gravatar image

grahamb ♦
accept rate: 22%

Great. Thanks a lot.

(31 Jul '13, 10:22) vadgros

As of the 1.11.x and 1.12 versions of tshark, the field names are "_ws.col.Protocol" and "_ws.col.Info", instead of "col.Protocol" and "col.Info".


tshark -T fields -e _ws.col.Protocol -e _ws.col.Info


permanent link

answered 19 Jun '14, 16:58

CraigGarrett's gravatar image

accept rate: 0%

edited 20 Jun '14, 10:21

Your answer
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: 31 Jul '13, 09:51

question was seen: 5,811 times

last updated: 20 Jun '14, 10:21

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