Using patterns to select rolled logs