Limit last_log scanning to 1000 lines (increases plugin startup time)