upload the log file to s3 every 5 minutes