Fixes #4817 Restoring feature to import logs by specifying --login and --password