Is it possible to find which query was running at particular time with azure log analytics

Ingle, Mahesh 21 Reputation points
2021-07-09T09:19:50.297+00:00

Is it possible to find which query was running at particular time with azure log analytics?
I need to prepare one dashboard where I can see this information.

Azure SQL Database
{count} votes

Accepted answer
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2021-07-16T00:05:51.197+00:00

    Hi @Ingle, Mahesh our PG was able to validate that you can see SQL statements in Log Analytics:
    So they created a database and enabled auditing using Log Analytics. and ran this query:

    --AUDIT Is it possible to find which query was running at particular time with azure log analytics
    select getdate()

    And a few minutes later (you don’t always see results immediately)
    You can view the audit logs in the portal:

    115150-image.png

    Please let me know if that is not what you are looking for

    Regards,
    Oury

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.