0

I downloaded the slow query log file from Aurora Mysql. I want to playback these queries but separate them to just writes and reads. So a tool to extract only selects, or Inserts+Updates would be nice

edmamerto
  • 7,605
  • 11
  • 42
  • 66

1 Answers1

0

Found it! we can use pt-query-digest

pt-query-digest mysql-slowquery.log --no-report --output slowlog --filter '$event->{fingerprint} =~ m/^insert|^update/' > writes-only.log
edmamerto
  • 7,605
  • 11
  • 42
  • 66