From b1fb2e599be5c6a276ebb9bf1249ead134525466 Mon Sep 17 00:00:00 2001 From: quebim Date: Thu, 19 Dec 2024 08:37:51 -0300 Subject: [PATCH] Fix generated data dump to log file --- ecs/command/event-generator/event_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecs/command/event-generator/event_generator.py b/ecs/command/event-generator/event_generator.py index 6a5eebfaa15b0..4996bc73078d0 100644 --- a/ecs/command/event-generator/event_generator.py +++ b/ecs/command/event-generator/event_generator.py @@ -137,8 +137,8 @@ def main(): data = generate_random_data(number, include_all_fields=args.index) with open(GENERATED_DATA_FILE, 'a') as outfile: - for event_data in data: - json.dump(event_data, outfile) + # for event_data in data: + json.dump(data, outfile) outfile.write('\n') logging.info('Data generation completed.')