def METHOD_NAME(logs, endpoint):
    list_dicts = []
    for msg in logs:
        final_dict = dict(msg)
        final_dict['event.dataset'] = endpoint
        list_dicts.append(final_dict)
    return list_dicts