Skip to content

Commit 36d6012

Browse files
committed
fix: [csvimport] Added missing field in additional header & fixed MISP Event variable name
1 parent a457a0b commit 36d6012

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

misp_modules/modules/import_mod/csvimport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"event_analysis",
8787
"event_date",
8888
"event_tag",
89+
"event_timestamp"
8990
]
9091
misp_extended_csv_header = misp_standard_csv_header + misp_context_additional_fields
9192

@@ -185,7 +186,7 @@ def __build_misp_event(self, attribute_indexes, object_indexes):
185186
objects[object_id] = misp_object
186187
objects[object_id].add_attribute(**attribute)
187188
else:
188-
self.event.add_attribute(**attribute)
189+
self.misp_event.add_attribute(**attribute)
189190
for misp_object in objects.values():
190191
self.misp_event.add_object(**misp_object)
191192
else:

0 commit comments

Comments
 (0)