Querying Azure SQL Extended Event not returning any data

Scott Klein 5 Reputation points
2024-12-23T18:53:21.0233333+00:00

I created an extended event in Azure SQL database to capture query data. The data is being written to Azure blog storage, and there is definitely data in the files:

User's image

I verified that data exists by downloading one of the files and opening it in SSMS.

I created the appropriate SAS token and database credentials.

However, when querying any of the xel files, it returns no data, and I am not sure why. I have tried both sys.fn_xe_file_target_read_file and sys.fn_get_audit_file_v2. Both return nothing as shown below.

User's image

Any ideas? What did I miss? Thank you very much.

Azure SQL Database
{count} votes

Your answer

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