diff --git a/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java b/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java index 8fba86c4c2..24a538b056 100644 --- a/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java +++ b/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java @@ -47,6 +47,7 @@ public static void reportFault(MessageContext messageContext) { dataUnit.setCurrentIndex(StatisticDataCollectionHelper.getParentFlowPosition(messageContext, null)); FaultEvent faultEvent = new FaultEvent(dataUnit); + faultEvent.getDataUnit().generateElasticMetadata(messageContext); addEventAndIncrementCount(messageContext, faultEvent); } }