June 20, 2013

Post: Slow Query Log analyzes tools

… changes to log all queries slow query log may be growing too rapidly to follow, so we implemented slow query log filter (based on parse_mysql_slow_log by… across same slow query log first to fix worse queries and then come to find more optimization candidates. So “tail -f mysql-slow.log | mysql_slow_log_filter -T…

Post: MySQL Slow query log in the table

As of MySQL 5.1 get MySQL slow query log logged in mysql.slow_log table instead of the file as you had in previous … changes) or filter out queries which you already looked at using LIKE statement. As default table format for slow_log is CSV with… come in the log file. If you used to do tail -100 log-slow.log and now change it to SELECT * FROM slow_log ORDER BY…

Comment: Slow Query Log analyzes tools

Hello, The function of mysql slow log filter is more attractive,so I just installed Fedora 9 and MySQL 5.1.29. Unfortunately, I am… download the mysql_slow_log_filter file and issue the command “tail -f mysql-slow.log | mysql_slow_log_filter -T 0.5 -R 1000″, the result is always “bash: mysql_slow_log_filter: command…

Comment: Slow Query Log analyzes tools

Eric, you may want to make mysql_slow_log_filter executable: chmod a+x mysql_slow_log_filter

Post: Percona Toolkit 2.1.8 released today with beta support for MySQL 5.6

…. Slow logs which include timestamps but no query–which can happen if using slow_query_log…check-only. When using –replicate-check-only, filter options like –databases and –tables were …timezones inconsistently. Previously, pt-heartbeat respected the MySQL time zone, but this caused false readings…

Post: Visualization tools for pt-query-digest tables

… Anemometer is a tool for visualizing collected data from the MySQL Slow Query Log. The name comes from the instrument in a weather… queries with optional filtering on first seen date; * custom reports, choosing which columns to show; * filtering queries by hosts; * filtering reports by different…

Post: Hidden columns of query_review_history table

You can use pt-query-digest to process a MySQL slow query log and store historical values for review trend analysis into query… look at a slow log and see them. However, there are some that don’t exist in the slow log, and slow logs may actually include… you copied slow query log from the another server. Having hostname set might be useful for filtering queries in the database aggregating slow queries…

Post: Estimating Replication Capacity

…=0 and log_slave_slow_statements=1 for this method to work. Get the log file which will include all queries MySQL server ran with their times and run mk-query-digest with filter to only check queries from replication thread: mk-query-digest slow-logfilter ‘($event->{user} || “”) =~ m/[SLAVE_THREAD…

Post: Poor man's query logging

MySQL to a file with limited amount of additional information. The other is slow log enabled by –log-slow-queries parameter (MySQL 5.1 requires also –slow-query-log), which was designed to store… take a peek into a network stream and filter for packets that go to MySQL. Those packets contain queries. Here’s my…

Comment: Slow Query Log analyzes tools

Dear Peter, I reimplemented the mysql_slow_log_parser in PHP in order to provide an even more filtered result. If you want me… is no attachment function here. # Apply filter to log file once php mysql_slow_log_parser.php mysql-slow-queries.log Options: -T=min_query_time Include only… string include_query (i.e. database or table name) [multiple] –filter-duplicates Output only unique query strings with additional statistics: max…