def get_logins(results):
    """Generate list of login attempts starting with failed logins."""
    logins = []

    for result in results:
        if result['EventCode'] == '4624' or result['EventCode'] == '4625':
            logins.append(result)
    return logins