http://www.perlmonks.org?node_id=599066


in reply to Untangling Log Files

Non-perl answer: Personally, I would use the unix grep command to extract the desired lines out of the log files, then redirect that output into another file, possibly with a sort wedged in the middle. This is on a unix box though, not sure what your OS is or if there's an equivalent set of commands for it.

Something like this:
grep -h process_identifier *.log | sort -options > process_identifier. +newlog

---
It's all fine and dandy until someone has to look at the code.