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

Hi, I installed wireshark in a remote server.But I am not able to see the wireshark folder inside /home/username/.config/ or in /etc/wireshark.conf .

I have access to remote server only through ssh.

Actually I need to add some columns in preference file of wireshark.But I can't see preference file in any of these locations.

Right now I am doing the following method.But in the following code I need to add ip identification field( also. Is there any method I can do it without adding a column in preference file.?

tshark -r capture.pcap -Y "udp or tcp and ip.dst ==" -o "gui.column.format:\"Time\",\"%Yt\",\"Source address\",\"%s\",\"Protocol\",\"%p\",\"Destination address\",\"%d\",\"SrcPort\",\"%S\",\"DstPort\",\"%D\"" > text

Server is using Ubuntu Zesty Zapus(17.04) and wireshark version is 2.2.4.

Thanks in advance


asked 25 Jan '17, 10:05

subinjp's gravatar image

accept rate: 0%

Typically it's located in $HOME/.wireshark/, but if you want to add the field, you can do so with a custom column, such as \"IP ID\",\"\" ... where the 0 indicates all occurrences of the field as opposed to only the 1st, 2nd, nth, or last occurrence, and the R indicates "Resolved", as opposed to "Unresolved", which typically makes more sense for things like addresses and ports.

permanent link

answered 25 Jan '17, 10:17

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

edited 25 Jan '17, 10:55

Thank you very much for your response.It worked. Could you give a reference or a general pattern of adding custom columns in tshark.??

(25 Jan '17, 10:37) subinjp

Unfortunately, I don't think custom column formats are documented very well, at least not that I can find. Basically, the format is as I described though:

"Arbitrary Name","%Cus:fieldname" ... with optional occurrence and resolved/unresolved flag. Use an occurrence value of -1 for the last occurrence, 0 for all occurrences and any other positive integer n for the nth occurrence. I'm not entirely sure, but resolved (R)/unresolved(U) may depend upon whether name resolution is enabled or not for those fields where it's applicable.

(25 Jan '17, 11:00) cmaynard ♦♦

Thank you.:)

(25 Jan '17, 12:59) subinjp
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: 25 Jan '17, 10:05

question was seen: 2,249 times

last updated: 25 Jan '17, 12:59

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