Updated upload script to allow filtering of the log