Questions on Azure SQL DB Diagnostic Settings/ Log Analytics.

chrisrdba 471 Reputation points
2023-08-11T16:35:27.9366667+00:00

Greetings. After beating my head I finally understood these features how to properly use these features. However, I'm not seeing the value. Once Ive collected some data I run the query below in the portal. I get plenty of data back, but none of it shows me what query was running when the entry was generated. That said, how is it any value? Am I missing something?

Thanks!


AzureDiagnostics
|where Category  == "Blocks"
or Category  == "DatabaseWaitStatistics"
Azure SQL Database
{count} votes

Answer accepted by question author
  1. Oury Ba-MSFT 21,121 Reputation points Microsoft Employee Moderator
    2023-08-18T12:09:07.3333333+00:00

    @chrisrdba

    In the "Blocks" dataset, query-level data for the blocker and blocked queries may be obtained from the blocked_process_filtered_s column.

     The "DatabaseWaitStatistics" dataset does not provide data at the query level. It provides wait stats for the entire database engine instance.

    Regards,

    Oury


0 additional answers

Sort by: Most helpful

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.