Using Percona pt-query-digest to analyse slow query log for a specific database only

1k views Asked by At

Percona tool script, pt-query-digest, looks like it will be very useful to analyse a MySQL slow query log. Does someone know how I can get the script to only look at queries relating to a specific database?

Thanks

1

There are 1 answers

0
Bill Karwin On BEST ANSWER
pt-query-digest --filter '$event->{db} eq "mydatabase"' ...other arguments...