Extract query fingerprints and tables from large log files using pt-query-digest
I would try to use the --sample option:

pt-query-digest --sample 2 --print --no-report /path/to/largeLogFile.log


This would filter out all but the first 2 occurrences of a query fingerprint. --no-report removes the memory and cpu overhead of aggregating.