Skip to main content


Hey all,


I have a list of values assigned to a key in dictionary like
sample_dict = {abc: [1, 2, 3]}
how can I assign this to an event dictionary in connector without throwing an error?


I think what you're looking for is something like this:


from SiemplifyUtils import dict_to_flat





try:


flat_event = dict_to_flat(sample_dict)


case_info.events = [flat_event]





except Exception as e:


siemplify.LOGGER.error("Failed to process event {}".format(sample_dict)


siemplify.LOGGER.exception(e)


Reply