January 2018
Intermediate to advanced
446 pages
12h 57m
English
You can capture TCP traffic using the tcpdump command and send it to pt-query-digest for analysis:
shell> sudo tcpdump -s 65535 -x -nn -q -tttt -i any -c 1000 port 3306 > mysql.tcp.txtshell> pt-query-digest --type tcpdump mysql.tcp.txt > tcpdump_digest
There are plenty of options available in pt-query-digest, such as filtering queries for a specific time window, filtering a specific query, and generating reports. Please refer to the Percona documentation at https://www.percona.com/doc/percona-toolkit/LATEST/pt-query-digest.html for more details.
Read now
Unlock full access