def format_file_name(device_ip, date):
    """
    Get template for name of syslog file
    Args:
        device_ip: device ip (str)
        date: date (class obj)
    Returns: template as date.device_ip.txt (str)
    """
    ip1, ip2, ip3, ip4 = device_ip.split('.')
    template = f"{date}.{int(ip1):>03}.{int(ip2):>03}.{int(ip3):>03}.{int(ip4):>03}.txt"
    return template