def _get_manager_log_hashes(manager, logger):
    """Get a dict mapping file paths to hashes for logs on the specified
    manager.
    File paths will be relative to the root of the logs (/var/log/cloudify).
    journalctl.log and supervisord.log will be excluded as they can't be kept
    from changing.
    """
    logger.info('Checking log hashes for %s`', manager.private_ip_address)
    log_hashes = {
        f.split()[1][len('/var/log/cloudify'):]: f.split()[0]
        for f in manager.run_command(
            'find /var/log/cloudify -type f -not -name \'supervisord.log\''
            ' -exec md5sum {} + | sort',
            use_sudo=True
        ).stdout.splitlines()
    }
    logger.info('Calculated log hashes for %s are %s',
                manager.private_ip_address,
                log_hashes)
    return log_hashes