Ask Your Question

export to csv for more than 24 bytes data

asked 2019-12-12 07:12:57 +0000

goma_fusa gravatar image

Dear Sirs,

I exported the 32 bytes received data (UDP) into csv format. Only 24 bytes data frame is correctly exported to csv format but rest of 8 bytes are trashed. And I noticed that data shown in packet list window is also 24 bytes and following 8 bytes are collapsed and displayed as "...". Does anyone know how to export more than 24 bytes data into csv format ?

Best regards, Goma Fusa

edit retag flag offensive close merge delete


What is the field name being exported that contains the UDP data?

Chuckc gravatar imageChuckc ( 2019-12-12 13:24:04 +0000 )edit


Field name is of Custom. Thank you in advance

Best regards

goma_fusa gravatar imagegoma_fusa ( 2019-12-12 13:45:42 +0000 )edit

Still looking at GUI. Here's an example with tshark:

$ tshark --disable-protocol dns -r ./dns-ptr.pcapng -T fields -e | head -2
Chuckc gravatar imageChuckc ( 2019-12-12 15:08:44 +0000 )edit

What version of Wireshark?

grahamb gravatar imagegrahamb ( 2019-12-12 15:12:51 +0000 )edit

my version is 3.0.7

goma_fusa gravatar imagegoma_fusa ( 2019-12-12 20:40:00 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-12 15:34:36 +0000

Chuckc gravatar image

It's hard coded to a max of 48 characters.

/* Max string length for displaying byte string.  */
#define MAX_BYTE_STR_LEN        48

That's 16 bytes if a space is between each hex byte or 24 bytes with no spacer as in
tshark might be the best method.

edit flag offensive delete link more


$ tshark --disable-protocol dns -r ./dns-ptr.pcapng -T fields -Eheader=y -Eseparator="," -Equote=d -e frame.number -e

Info on all tsharkoptions here:

Chuckc gravatar imageChuckc ( 2019-12-12 15:56:51 +0000 )edit

Now I solved the issue by tshark based on your answers. Many thanks for your support !!

goma_fusa gravatar imagegoma_fusa ( 2019-12-12 20:38:22 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-12-12 07:12:57 +0000

Seen: 581 times

Last updated: Dec 12 '19