Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While troubleshooting a MySQL issue, I came across this command at commandlinefu:

tshark -i any -T fields -R mysql.query -e mysql.query

I am trying to understand it before I actually use it. Looking at the man page helped me understand the options used. The MySQL filter documentation was also helpful. However, how can I actually see what the filter looks like? I'm assuming all the filters are saved in a directory somewhere. Is this assumption incorrect?

share|improve this question
up vote 1 down vote accepted

On CentOS they're all compiled into /usr/lib/

All of the filters are called dissectors within the source code and are located in epan/dissectors.

The MySQL dissector is epan/dissectors/packet-mysql.c

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.