One problem that I should of stated above, I'm on Windows NT, using active perl (no BerkeleyDB). The database seems like an overkill for sorting a log file, but it could be an option.
You might try to install MySQL (its free) on your NT box, write a script to monitor your log file for changes, import new files into the database; use SQL to sort the file.