An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
Hello Swarada Jalukar
We want to clarify how Azure Network Security Group (NSG) Flow Log data is stored in the hourly PT1H.json blobs within the configured Azure Storage account.
NSG Flow Logs are saved as block blobs in Azure Storage, with each hour’s logs stored in a separate blob file. Throughout the active hour, this blob is updated at regular intervals (about every minute) by appending new flow records, rather than replacing the entire file. Only the new records are added to the existing PT1H.json blob, increasing the total number of records over time.
Under normal conditions, the blob’s data is not removed or replaced while it is being written to, so the record count should only rise.
Azure does not typically recreate or overwrite the PT1H.json blob during the active hour. However, exceptions can occur, such as if NSG Flow Logging is turned off and back on, if storage account keys are changed without updating logging, if the blob is deleted manually, or in rare platform or configuration issues. These scenarios may result in a new blob being generated for that hour.
If your log processing relies on checkpointing (like tracking the last processed record), new records are generally appended to the end of the JSON array. Still, processing solutions should be prepared to handle rare cases where the blob might be recreated during the active hour to avoid data inconsistencies.
These VNET logs will display only the latest log entries while the session remains active. If you enable the session and perform activities, the logs will appear during the session's active period. However, once you close the session, only the most recent log information will be shown, and the rest will not be visible.
I hope the above answer helps you! Please let us know if you have any further questions.
Please don't forget to "upvote" where the information provided will help you, this can be beneficial to other members of the community.