From 721675cfbf8519098f611d3c09aff7c46a54ff5d Mon Sep 17 00:00:00 2001 From: Brandon Myers Date: Mon, 8 Jul 2019 10:55:19 -0500 Subject: [PATCH] Update fluentd plugin --- mq/plugins/fluentdSqsFixup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mq/plugins/fluentdSqsFixup.py b/mq/plugins/fluentdSqsFixup.py index c2e5eebe..2201a022 100644 --- a/mq/plugins/fluentdSqsFixup.py +++ b/mq/plugins/fluentdSqsFixup.py @@ -113,7 +113,8 @@ class message(object): # Any remaining keys which aren't mandatory fields should be moved # to details # https://mozdef.readthedocs.io/en/latest/usage.html#mandatory-fields - for key in message.keys(): + original_keys = list(message.keys()) + for key in original_keys: if key not in [ 'summary', 'utctimestamp',