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

Display only substring of data.text

0

Hello,

I did add a column data.text and enabled it (https://ask.wireshark.org/questions/14011/customcolumn-datatext), so far the package content is displayed fine.

Now I would like to only show only certain characterfields there, for example the first ten chars, or char 5 to 8. Is this possible? I tried data.text[10] but it did not work

asked 04 Nov '16, 12:27

anothersharky's gravatar image

anothersharky
6112
accept rate: 0%


One Answer:

0

This is not possible out-of-the-box. You could however use a LUA script to extract portions of a field and put the result in a new field. Or you could file an "Enhancement Request" at https://bugs.wireshark.org for this functionality and hope that some developer finds interest in developing this functionality.

answered 07 Nov '16, 02:16

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

edited 07 Nov '16, 02:42

grahamb's gravatar image

grahamb ♦
19.8k330206