def get_syslog_facility(facility):
    """ get_syslog_facility() -- Get human-readable syslog facility name.

    Args (required):
        facility (int) - Facility number.

    Returns:
        Name of facility upon success.
        "UNKNOWN" on failure.
    """
    facilities = (
        (0, "KERNEL"),
        (1, "USER"),
        (2, "MAIL"),
        (3, "DAEMON"),
        (4, "AUTH"),
        (5, "SYSLOG"),
        (6, "LPR"),
        (7, "NEWS"),
        (8, "UUCP"),
        (9, "TIME"),
        (10, "AUTH"),
        (11, "FTP"),
        (12, "NTP"),
        (13, "AUDIT"),
        (14, "ALERT"),
        (15, "CLOCK"),
        (16, "LOCAL0"),
        (17, "LOCAL1"),
        (18, "LOCAL2"),
        (19, "LOCAL3"),
        (20, "LOCAL4"),
        (21, "LOCAL5"),
        (22, "LOCAL6"),
        (23, "LOCAL7"),
    )

    try:
        return facilities[facility][1]
    except (IndexError, TypeError):
        return "UNKNOWN"