Is it possible to get tshark
output every field (within the packet) using the -T fields
option, or similar?
e.g. For every field in the packet/reconstruction, I would like something like this:
eth.src:f2:3c:91:96:fd:09,ip.src:1.2.3.4,tcp.dst_port:80,http.request.uri:/index.html
(The comma could be replaced with a \xff
to make parsing better when values contain commas.)
I realise there is the -e
option but it seems that I would have to put in every single possible field in the command line. On top of that, only a small fraction of fields will be used in each packet, which makes for a lot of data to parse.
I currently plan to use the tshark -V
option and parse that, but ideally I would like more machine style terms such as http.request.uri
instead of "human readable" e.g.:
Hypertext Transfer Protocol
GET /main.php HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET /main.php HTTP/1.1\r\n]
[Message: GET /main.php HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /main.php