Mysql - logfile analysing: Difference between revisions

From Skytech
Jump to navigation Jump to search
(Created page with "Category:Linux = Mysql logfile analysis = == General log == This will focus on general log analysing. Will be using two fantastic tools: * pt-query-digest (on debian/ubu...")
 
Line 9: Line 9:
* mysqlsla (must be downloaded: http://hackmysql.com/mysqlsla)
* mysqlsla (must be downloaded: http://hackmysql.com/mysqlsla)


=== pt-query-digest ===
Sample output for a general log analysis:
Sample output for a general log analysis:
<pre>
<pre>
pt-query-digest --type=genlog mysql-general.log
pt-query-digest --type=genlog mysql-general.log
</pre>

=== mysqlsla ===
<pre>
./mysqlsla -lt general mysql-general.log
</pre>
</pre>

Revision as of 10:55, 13 March 2014


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 mysql-general.log

mysqlsla

./mysqlsla -lt general mysql-general.log