Azure Vnet Flow Logs Overwriting the file

Nisha Das 50 Reputation points
2026-02-03T16:49:03.0933333+00:00

Hi,

I have enabled VNet flow logs and configured them to be sent to a storage account. I also set up a queue to receive notifications. After this, I started a VM, generated some network activity, and then stopped the VM. This resulted in three messages being generated.

Later, I started the VM again and generated additional network activity. However, when I read the log file this time, I noticed that the previous content was overwritten instead of being appended. My understanding was that VNet flow logs rotate every hour and append data to the same file at one-minute intervals.

Based on this, the file should contain a total of eight objects (six from the first run and two from the second run). Instead, the latest file contains only two objects.

Can someone explain why the logs appear to be overwritten rather than appended? Am I missing something?

Azure Network Watcher
Azure Network Watcher

An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.


1 answer

Sort by: Newest
  1. Ganesh Patapati 12,170 Reputation points Microsoft External Staff Moderator
    2026-02-03T18:09:02.7366667+00:00

    Hello Nisha Das

    Flow logs are stored in a storage account in block blobs.

    NOTE: Each log is a separate block blob that is generated every hour and updated with the latest data every few minutes.

    Refer: Read flow logs

    A block blob update is typically done by replacing the blob’s committed block list, not by appending to the existing content. So, when you re-download the blob later, it may look like “the file was overwritten”, because you’re seeing the latest committed version of the blob at the moment you read it.

    If you download it right after your first VM run, you might get a snapshot of the blob at that time.

    Later, after you start the VM again, Azure writes another update. That update may involve committing a new set of blocks. When you download again, you get the latest committed block list, which can make earlier content appear “gone” if the previous blocks were not retained in the committed list.

    Refer: Read the block blob


    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.