Skip to content

Commit 9372fef

Browse files
committed
Change log for index name format failure in opensearch sink
Signed-off-by: Taylor Gray <tylgry@amazon.com>
1 parent 8e7114f commit 9372fef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch

data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/OpenSearchSink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public void doOutput(final Collection<Record<Event>> records) {
216216
try {
217217
indexName = indexManager.getIndexName(event.formatString(indexName));
218218
} catch (IOException | EventKeyNotFoundException e) {
219-
LOG.error(SENSITIVE, "There was an exception when constructing the index name for Event[{}]: {}", event.toJsonString(), e.getMessage());
219+
LOG.error("There was an exception when constructing the index name. Check the dlq if configured to see details about the affected Event: {}", e.getMessage());
220220
dynamicIndexDroppedEvents.increment();
221221
logFailureForDlqObjects(List.of(DlqObject.builder()
222222
.withEventHandle(event.getEventHandle())

0 commit comments

Comments
 (0)