Generating log files and using it as stream to sparc computation