Instead of a log file, you can use pt-query-digest to read queries from the process list:
shell> pt-query-digest --processlist h=localhost --iterations 10 --run-time 1m -u <user> -p<pass>
run-time specifies how long each iteration should run. In the preceding example, the tool generates reports every minute for 10 minutes.