Mysql - logfile analysing

From Skytech
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Mysql logfile analysis

General log

This will focus on general log analysing.

Will be using two fantastic tools:

pt-query-digest

Sample output for a general log analysis:

pt-query-digest --type=genlog --filter '$event->{db} eq "wp-site42"' mysql-general.log

mysqlsla

./mysqlsla --log-type general mysql-general.log