Hello Ayush Shrimal
I understand that you're dealing with an issue where your Azure VNet flow logs are successfully exporting to a storage account, but you're noticing discrepancies when comparing those logs to what's being sent to the Event Hub.
You are on the right track with the configuration and set up based on the resources you've provided. Here are a few possible reasons and troubleshooting steps:
- Traffic analytics exports segregated data, not every individual flow. You will not get 1:1 flow entries compared to storage. Some flows may not appear if they are too short-lived or below aggregation threshold.
- Log Processing Delay: Traffic Analytics processes logs at intervals, so there might be a delay in logs appearing in Event Hub compared to Storage Account. Check if logs appear after some time.
- Filtering in Export Rule: Ensure that the export rule isn't filtering out specific logs before sending them to Event Hub.
- Event Hub Quotas & Limits: Event Hub has throughput units and retention limits. If logs exceed these limits, some data might not be stored. Check Event Hub metrics to see if any messages were dropped.
- Log Format Differences: Storage Account logs are stored in JSON format, while Event Hub logs might be processed differently.
Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.