An Azure real-time data ingestion service.
Hi Sivabalan J,
Thankyou for reaching microsoft Q&A!
You’re right that all 10 Azure Files diagnostics events appearing in the storage archive but only 1 showing up in your Event Hub consumer is possible. Diagnostic settings fan out the same categories (StorageRead/Write/Delete) independently to each destination, and there is no documented Azure‑side feature that selectively filters specific File operations, shares, or paths only on the Event Hubs route once those categories are enabled.
Given that the archive has all 10 events, the most likely causes are on the Event Hubs side: ingestion issues (for example, throttling) or, more commonly, consumer behavior such as batch handling and custom checkpointing. If the Java client processes only the first record in each JSON records array or checkpoints offsets before all records are processed, it will look like “1 of 10” events arrived even though the full payload was published.
To validate this, I’d suggest:
In the Event Hub’s Metrics blade, check IncomingMessages and related metrics for the time window of your test to confirm that multiple messages were accepted.
Enable Event Hubs diagnostic logs (for example, RuntimeAuditLogs) via Diagnostic settings and send them to Log Analytics, then query the documented tables to see if there were errors or throttling during that period.
Optionally, enable Event Hubs Capture temporarily and inspect the captured blobs to verify whether all diagnostics events reached the Event Hub.
If the metrics/logs show normal ingestion but your consumer still sees only one event, the issue is almost certainly in the Java consumer’s parsing or checkpoint logic.
Docs for reference: Diagnostic settings and destinations: https://learn.microsoft.com/azure/azure-monitor/platform/diagnostic-settings Stream monitoring data to Event Hubs: https://learn.microsoft.com/azure/azure-monitor/platform/stream-monitoring-data-event-hubs Monitor Event Hubs (metrics and logs): https://learn.microsoft.com/azure/event-hubs/monitor-event-hubs Monitoring data reference: https://learn.microsoft.com/azure/event-hubs/monitor-event-hubs-reference