Split submit file generation into two scripts, one for processing logs and another for importing logs into ES