import_logs give a IOError: [Errno 29] Illegal seek when receive log from pipe because
we can't seek stdin in pipe mode