Skip to content

Commit 3f10cf8

Browse files
committed
Nest the cef mappings correctly as sub-objects
1 parent a44847d commit 3f10cf8

File tree

2 files changed

+113
-91
lines changed

2 files changed

+113
-91
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CefProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public IngestDocument execute(IngestDocument document) {
6060
}
6161
ZoneId timezone = getTimezone(document);
6262
try (CEFEvent event = new CefParser(timezone, removeEmptyValue).process(line)) {
63-
document.setFieldValue(targetField, event.getCefMappings());
6463
event.getRootMappings().forEach(document::setFieldValue);
64+
event.getCefMappings().forEach((k, v) -> document.setFieldValue(targetField + "." + k, v));
6565
}
6666
return document;
6767
}

0 commit comments

Comments
 (0)