flush logs in metrics processing