Added code to make a log in JSON format, and we can use that log file to load data in MongoDB