How to see sql request in Log Analytics

Manuel Bustamante 47 Reputation points
2021-06-18T09:45:35.983+00:00

Hello Team,

I would like to get in Log Analytics the same information we can find in Monitoring>>Query activity in Synapse Dedicated SQL Pool, which I believe is the same information we can find in system view sys.dm_pdw_exec_requests within SQL.

I followed all steps here:
https://learn.microsoft.com/en-us/answers/questions/278594/how-to-write-queries-for-synapse-on-log-analytics.html

with the difference that I've activated as destination the log analytics workspace AND the blob storage.
The funny thing is that I can see the logs in the blob storage but not in Log Analytics.

My diagnostic settings are:

106966-image.png

As described in the link here above I'm querying SynapseSqlPoolSqlRequests:

106988-image.png

Blob storage:

![107061-image.png]3

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,572 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,309 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,601 Reputation points
    2021-06-21T06:54:54.98+00:00

    Hello @Manuel Bustamante ,

    Welcome to the Microsoft Q&A platform.

    After configuring the diagnostics settings, it would take up to 15-20 minutes for the events to emit from Synapse SQL Pool into the Log Analytics workspace.

    As per my repro, it took nearly 20 minutes for the events to appears in the Log Analytics.

    107523-image.png

    In case, if you are not able to see the events in the log analytics workspace after 30mins, please do let me know.

    For more details, refer to Monitor workload - Azure portal.

    Hope this helps. Do let us know if you any further queries.

    ------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

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.