Azure Audit en blob Storage me genera una carpeta llamada RO

Anónimo
2025-10-02T19:52:27.7233333+00:00

Carpeta generada del directorio del blob storage del día y ruta del blob storage

Hola comunidad, una Captura de pantalla 2025-10-02 125854

Captura de pantalla 2025-10-02 130445

pregunta, cuando se habilitó azure audit database me genera los registros .xel en una carpeta por día, sin embargo, también me genera una carpeta llamada RO que tiene archivos .xel

De esto los archivos dentro de RO no llegan a pesar más de 50 Kb, contienen las mismas columnas que los archivos .xel que me genera en la carpeta de cada día.

No hay un distintivo como para que azure los guarde aparte (ya los revisé)

No contiene información duplicada (lo que guarda el .xel en la carpeta del día, no es lo mismo que aparece en el otro archivo .xel o en la carpeta del día) En el ambiente de pruebas no me lo generó nunca.

¿Saben que significa el RO de la carpeta? (no creo que sea de Read-Only porqué la naturaleza de los .xel es que no se pueden modificar) ¿Saben por que se generan a parte?

Inglés:

Folder generated from the blob storage directory by day and blob storage pathHello community, a question: when Azure Audit Database was enabled, it generates .xel records in a folder for each day; however, it also generates a folder called RO that contains .xel files.The files inside RO do not exceed 50 KB in size and contain the same columns as the .xel files generated in the daily folder.There is no marker for Azure to save them separately (I have already checked).They do not contain duplicate information (what is saved in the .xel file in the daily folder is not the same as what appears in the other .xel file or in the daily folder).In the test environment, it never generated this for me.

Do you know what the RO of the folder means? (I don't think it stands for Read-Only because the nature of .xel files is that they cannot be modified).

Do you know why they are generated separately?

Archivos de Azure
Archivos de Azure

Servicio de Azure que ofrece recursos compartidos de archivos en la nube.

0 comentarios No hay comentarios

1 respuesta

Ordenar por: Menos reciente
  1. Anónimo
    2025-10-03T06:56:37.75+00:00

    Hi Mr. M,

    Welcome to Microsoft Q&A, and thank you for posting your detailed question about the "RO" folder appearing in your Azure Audit Blob Storage.

    When Azure SQL Database auditing is enabled to write audit logs to Blob Storage, audit logs are created in a structured directory hierarchy within the storage container. These logs are organized primarily by date, such as folders named "2025-10-02" containing .xel files that capture detailed audit events for that specific day.

    What is the "RO" Folder?

    The RO folder stands for Read-Only Replica. Azure SQL Database, especially in high availability and geo-replication scenarios, can have one or more read-only replicas of the database to offload read workloads or enable disaster recovery.

    Audit logs generated by these Read-Only Replicas are stored separately inside this RO folder. Although the file format (.xel) and column structure remain consistent with the primary database audit logs, the content reflects auditing information specifically related to operations against the read-only replicas

    Why are RO logs smaller and separate?

    • The .xel files in the RO folder tend to be smaller (often less than 50 KB) because read-only replicas typically generate fewer audit events, mostly read-only queries and replica-specific activity.
    • These logs contain similar audit columns but hold different event data distinct from the primary database logs, avoiding duplication.
    • This separation helps administrators clearly distinguish between audit events occurring on the primary database and those on read-only replicas, which is especially useful for compliance, monitoring, and troubleshooting in geo-distributed or highly available environments.

    Why didn’t it appear in your test environment?

    • If in a test environment you do not see such a folder, it is likely because read-only replicas are not configured there. This separation helps keep primary database audit logs distinct from the replicas' audit logs, aiding in precise auditing and troubleshooting.
    • Thus, the presence of the RO folder is expected behavior in environments where read-only replicas exist and are audited separately.

    How to query these logs?

    You can use the sys.fn_get_audit_file function to query both daily and RO logs:

    SELECT *
    FROM sys.fn_get_audit_file (
      'https://<storage-account>.blob.core.windows.net/<container>/RO/', 
      NULL, 
      NULL
    );
    

    Replace the placeholders with your actual storage account, container, server name, database name, audit name, and date folder.

    This will allow you to analyze and monitor audit events from the read-only replicas alongside the primary database logs.

    In summary, the RO folder’s presence is expected and indicates audit logs from read-only replicas that Azure SQL Database tracks separately for clear differentiation and auditing completeness. This setup is especially relevant in production environments with geo-replication or high availability enabled.

    Feel free to ask if you need further clarification on this.

    If the provided information answers your query, please do "Accept Answer", it will help others who might be facing similar challenges.

    Thanks,

    Harish.

    ¿Le resultó útil esta respuesta?

    1 persona encontró esta respuesta útil.
    0 comentarios No hay comentarios

Su respuesta

Las respuestas pueden ser marcadas como Respuestas aceptadas por el autor de la pregunta, lo que indica a los usuarios que la respuesta resolvió su problema.