def convert_row_to_dict(row):
    """
    Convert a list of fields in the CloudFlare CSV file
    into a dict with field names.
    """

    cf_dict = dict()
    cf_dict['hostname'] = row[0]
    cf_dict['clientIp'] = row[1]
    # CloudFlare Placeholder, always a hyphen
    cf_dict['col3'] = row[2]
    # CloudFlare Placeholder, always a hyphen
    cf_dict['col4'] = row[3]
    # CloudFlare timestamp is RFC 3339 and Loggly wants
    # ISO 8601. Should be compatible as RFC3339 is stricter
    # version of ISO 8601.
    cf_dict['timestamp'] = row[4]
    cf_dict['request'] = row[5]
    cf_dict['status'] = row[6]
    cf_dict['content-length'] = row[7]
    cf_dict['referer'] = row[8]
    cf_dict['user-agent'] = row[9]
    cf_dict['ray-id'] = row[10]

    return cf_dict