def saveEvent(event):
    try:
        with open(os.path.join(outputdir, f"{event['Event']['uuid']}.json"), 'w') as f:
            json.dump(event, f, indent=2)
    except Exception as e:
        print(e)
        sys.exit('Could not create the event dump.')
def saveEvent(event):
    try:
        with open(os.path.join(outputdir, f"{event['Event']['uuid']}.json"), 'w') as f:
            json.dump(event, f, indent=2)
    except Exception as e:
        print(e)
        sys.exit('Could not create the event dump.')