Preprocess all log data and import it into mongodb