added log filtering and sorting.  Could be cleaner.