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',