In This Article
Microsoft Fabric audit logs help you investigate database activity and administrative changes, but those records live in different places. Use SQL database auditing for database statements and authentication; use Microsoft Purview audit records for tenant-wide Fabric activity.
The distinction matters when you need defensible evidence about data access or a deleted item. Start by matching your investigation to the right log source, then configure collection and retention before an incident happens.
Key takeaways
- SQL database audit logs live in a read-only OneLake folder, separate from tenant-wide activity records.
- SQL audit retention is indefinite by default, but deleting the database item also deletes its logs.
- Item recovery changes deletion evidence: the initial action can appear as
ArtifactSoftDeleted, with Delete Artifact recorded at permanent deletion.
Choose the right Microsoft Fabric audit logs
SQL database activity
SQL database auditing captures configured database events, including statement execution and authentication. Use it to investigate database access, permission changes, or schema modifications.
However, collection settings determine what evidence exists. A narrow configuration won’t provide the same coverage as Audit everything.
These instructions apply to the Fabric SQL database item. Don’t assume its configuration controls every SQL endpoint or analytics workload.
Tenant actions and OneLake access
Microsoft Purview records tenant-level Fabric activity for compliance monitoring. It complements database-level records with evidence about administrative and item operations.
OneLake diagnostics cover OneLake data-access and storage operations. Shared storage doesn’t mean one audit source captures every access path.
OneLake is built into Fabric and supports its integrated workloads. Therefore, trace the actual engine and access route during an investigation. Our guidance on Fabric data lineage for compliance helps connect affected data with downstream reporting.
Enable SQL database auditing
Configure collection in the Fabric portal
Use Microsoft’s Fabric SQL database auditing guidance to configure this audit setup:
- Open the SQL database in your Fabric workspace.
- Select Security, then Manage SQL auditing.
- Select Save Events to SQL Audit Logs.
- Choose the events to record. Optionally configure retention and a predicate expression.
- Select Save to apply the configuration.
Audit everything is the default event selection. It captures batch completions and successful and failed authentication. That default selection doesn’t replace saving the auditing configuration.
The preconfigured scenarios are Permission Changes & Login Attempts, Data Reads and Writes, and Schema Changes. Custom Events supports more selective collection through audit action groups.
Match permissions and filters to the task
Managing auditing through Fabric workspace roles requires Contributor or higher. Configuring it through T-SQL requires ALTER ANY DATABASE AUDIT.
Grant VIEW DATABASE SECURITY AUDIT only to users who need to view audit evidence. This permission doesn’t replace the workspace-role or T-SQL requirements for configuration.
Available action groups include SCHEMA_OBJECT_ACCESS_GROUP and DATABASE_PRINCIPAL_CHANGE_GROUP. Select groups according to the evidence your security and database teams need. Captured events may support an investigation of suspected SQL injection, but auditing doesn’t prevent attacks.
T-SQL predicate expressions can filter events before storage. Aggressive filtering can leave evidence gaps, so document exclusions alongside the audit policy to help responders understand what wasn’t collected.
Restrict configuration access to appropriate administrators under least privilege. Our practical Fabric security controls address workspace access and recurring reviews that support reliable audit collection.
Find and query the OneLake audit folder

Locate the database identifiers
SQL database audit files reside in a read-only folder in OneLake. Use OneLake Explorer to inspect the folder, or query its files with T-SQL.
The path includes the workspace ID and database artifact ID. In the Fabric portal URL, these appear after /groups/ and /sqldatabases/, respectively.
Replace the identifiers in the query below with those values. The folder structure remains /Audit/sqldbauditlogs/.
Read a bounded time window
The sys.fn_get_audit_file_v2 reference documents time-based filtering. Use sys.fn_get_audit_file_v2 for this Fabric audit path, not sys.fn_get_audit_file. This query requests events for November 1, 2026:
SELECT
event_time,
action_id,
succeeded,
server_principal_name,
statement
FROM sys.fn_get_audit_file_v2(
'https://onelake.blob.fabric.microsoft.com/{workspace_id}/{artifact_id}/Audit/sqldbauditlogs/',
DEFAULT,
DEFAULT,
'2026-11-01T00:00:00Z',
'2026-11-02T00:00:00Z'
)
ORDER BY event_time DESC;
Start with the incident window, then narrow the results by principal, action, or statement content. Preserve relevant records before retention policies or item deletion can remove them.
Interpret captured statements in context, since dynamic SQL can differ from the application request that produced it. Treat suspicious content, including possible SQL injection, as a lead, then corroborate it with principal, time, and application evidence.
A successful event indicates that the recorded operation succeeded. It doesn’t establish whether the activity had business approval. Compare the record with access requests and deployment history.
Investigate administrative changes and item deletion

For tenant-level investigations, use Microsoft Purview audit search through the Microsoft 365 audit experience. You need the appropriate tenant audit role and access for your organization’s configuration.
Choose a UTC incident window, then filter by user, activity, and affected item where available. Record the actor, timestamp, IP address, and item identifier, and preserve relevant audit log records.
Compare suspected permission changes with the approved change record and database-level evidence. SQL statement logs don’t explain workspace administration.
Search results include Date (UTC) and IP address. Keep your timeline in UTC so database events and tenant records line up.
Retention depends on applicable tenant settings and licensing, so missing results don’t prove that no activity occurred. Automate exports only through a supported REST API that exposes the required audit source and event fields, and validate results against the audit experience.
Microsoft’s Fabric operation catalog distinguishes these deletion-related events:
| Recorded operation | Investigation meaning |
|---|---|
| Delete Artifact | Deletion when recovery is disabled, or permanent deletion when recovery is enabled. |
| ArtifactSoftDeleted | The initial deletion when item recovery is enabled. |
| ArtifactRecovered | Recovery of a previously deleted item. |
The first deletion and permanent deletion can be separate events. Correlate their timestamps, actor details, and item identifiers.
A search for Delete Artifact alone can miss the initial action when item recovery is enabled.
Set retention, restore, and cost controls
Keep evidence beyond the item lifecycle
Fabric SQL database audit data is retained indefinitely by default. A custom retention period can automatically delete older logs.
However, indefinite retention doesn’t protect logs from item deletion. Deleting the database item also deletes its associated audit logs.
If evidence must survive database deletion, retain a separate copy outside that item’s lifecycle.
Microsoft names another Lakehouse or Azure Storage as destinations for retained copies, with AzCopy or SSDT as transfer options. Assign ownership for that process. Apply least privilege by limiting retained evidence, which may contain sensitive information, to authorized owners and responders.
Choose retention according to business and compliance requirements, rather than accepting the default without discussion. Evidence needed for an investigation must remain accessible after platform changes.
Separate write charges from storage planning
Writing SQL database audit logs to Fabric OneLake incurs no additional charge. Their storage still counts against the capacity’s OneLake storage limits.
Therefore, consider audit volume during storage planning. High-frequency activity and broad collection can increase retained data.
Restore procedures need attention too. Auditing settings persist after a restore, but auditing must be re-enabled: open Manage SQL auditing and select Save.
Include that action in the recovery runbook, then test that new events appear after restoration.
Customer success: AP Pension’s governed Fabric platform
AP Pension’s example in Microsoft’s Fabric customer success collection shows how a pension provider approached governance while consolidating decades of fragmented business data. The organization adopted Fabric with Mirroring, a centralized medallion architecture, and automated metadata management across more than 40 workspaces.
It anonymized sensitive data during ingestion and paired role-based access with audit trails, giving domain teams access to useful data within a governed platform. The example supports a practical lesson for Fabric audit logs: build auditability into ingestion, access design, and operating procedures. This Microsoft customer example is separate from our own delivery work.
Build auditability into Fabric delivery and support
Carry controls through implementation and migration
At Spargent Analytics, we design and deliver Microsoft Fabric solutions for U.S. mid-market and enterprise organizations. We support established analytics teams and companies without a full internal data team.
Our implementation and migration work covers ingestion, Data Factory pipelines, Dataflows Gen2, OneLake, Lakehouse, Warehouse, and Power BI integration. Governance should accompany those components before production access expands.
During Power BI to Microsoft Fabric migration, preserve ownership, access rules, and evidence requirements alongside reports and semantic models. That gives analytics modernization a firmer foundation than moving fragmented workflows unchanged.
Connect managed support with operating outcomes
Our managed support also covers semantic model optimization, Fabric performance optimization, capacity planning, and Real-Time Intelligence workloads. Audit evidence supports governance, while workload monitoring addresses performance and cost.
Together, these practices support faster reporting, fewer manual Excel workflows, and better returns on existing Microsoft investments. Our Fabric governance approach connects technical controls with accountable business ownership.
We pair senior European Microsoft Fabric specialists with U.S.-focused delivery and clear communication. This EU-to-USA model offers an efficient alternative to traditional USA-only consulting, whether you need additional expertise or broader delivery support.
Frequently asked questions
Do SQL authentication events show all Fabric user sign-ins?
No. SQL database authentication events cover database authentication activity. They aren’t a complete record of every user’s sign-in to the Fabric service. Keep authentication investigations separate from questions about later database access.
Do these instructions also configure a Fabric Warehouse?
No. A Fabric SQL database and a Fabric Warehouse are different items. Warehouse has its own SQL audit logging configuration. Match the procedure to the workload, even when both expose T-SQL interfaces.
Where do I search tenant-wide Microsoft Fabric audit activity?
Search tenant-wide Fabric activity in Microsoft Purview Audit. SQL database audit records cover database-level events, while OneLake diagnostics provide details about OneLake activity.
What access does an investigator need to search audit evidence?
The investigator needs a role with permission to search audit records in Microsoft Purview, such as Audit Reader or Audit Manager. Access to Fabric items alone doesn’t grant Purview audit search access.
How do deletion and retention settings affect SQL audit data?
SQL audit records remain available according to the retention settings for their configured destination. When records expire or are deleted, they can’t be used as evidence; deleting an item doesn’t replace tenant-wide activity records in Purview or OneLake diagnostics.
Make audit evidence part of normal operations
Reliable investigations depend on collection scope and evidence preservation. Separate SQL activity from tenant administration, retain records beyond item deletion when required, and include auditing in restore procedures.
If those controls are missing from your Fabric roadmap, Book a Microsoft Fabric Discovery Call to review your environment and identify the next practical step.