import_logs give a IOError: [Errno 29] Illegal seek when receive log from pipe because
we can't seek stdin in pipe mode
Merge pull request #294 from etmatrix/master

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