You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/main/java/org/opensearch/dataprepper/plugins/processor/mutateevent/AddEntryProcessor.java
@@ -47,6 +48,12 @@ public AddEntryProcessor(final PluginMetrics pluginMetrics, final AddEntryProces
47
48
thrownewInvalidPluginConfigurationException(
48
49
String.format("add_when %s is not a valid expression statement. See https://opensearch.org/docs/latest/data-prepper/pipelines/expression-syntax/ for valid expression syntax", entry.getAddWhen()));
String.format("add_to_element_when %s is not a valid expression statement. See https://opensearch.org/docs/latest/data-prepper/pipelines/expression-syntax/ for valid expression syntax", entry.getAddWhen()));
56
+
}
50
57
});
51
58
}
52
59
@@ -65,38 +72,20 @@ public Collection<Record<Event>> doExecute(final Collection<Record<Event>> recor
.setMessage("Error adding entry to record [{}] with key [{}], metadataKey [{}], value_expression [{}] format [{}], value [{}]")
85
+
.setMessage("Error adding entry to record [{}] with iterate_on [{}], add_to_element_when [{}], key [{}], metadataKey [{}], value_expression [{}] format [{}], value [{}]")
99
86
.addArgument(recordEvent)
87
+
.addArgument(entry.getIterateOn())
88
+
.addArgument(entry.getAddToElementWhen())
100
89
.addArgument(entry.getKey())
101
90
.addArgument(entry.getMetadataKey())
102
91
.addArgument(entry.getValueExpression())
@@ -132,6 +121,71 @@ public boolean isReadyForShutdown() {
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/main/java/org/opensearch/dataprepper/plugins/processor/mutateevent/AddEntryProcessorConfig.java
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/main/java/org/opensearch/dataprepper/plugins/processor/mutateevent/DeleteEntryProcessor.java
0 commit comments