Added option to specify the file name pattern to search for so non-running logs can be ignored