Microsoft Docs

Azure Synapse Analytics Documentation

Monitoring Security in Azure Synapse Analytics

This document provides guidance on how to effectively monitor security within your Azure Synapse Analytics environment. Monitoring is a crucial aspect of maintaining a secure data platform, enabling you to detect and respond to potential security threats, unauthorized access, and policy violations.

Key Monitoring Areas

Effective security monitoring in Synapse Analytics involves paying attention to several key areas:

Tools and Services for Monitoring

Azure provides a robust set of tools and services that can be leveraged for monitoring security in Synapse Analytics:

Configuring Monitoring and Alerts

To set up effective monitoring:

  1. Enable Diagnostic Settings: Configure diagnostic settings for your Synapse workspace to send logs (e.g., AuditLogs, RequestLogs, FirewallLogs) to a Log Analytics workspace.
  2. Set up Alert Rules: In Azure Monitor, create alert rules based on specific log events or metrics. For example, alert on failed login attempts, large data egress, or unusual query patterns.
  3. Utilize Defender for Cloud: Ensure Azure Defender for SQL and other relevant Defender plans are enabled for your Synapse resources to benefit from automated threat detection.
  4. Integrate with Azure Sentinel: Connect your Synapse logs and Azure Defender alerts to Azure Sentinel for centralized security monitoring and advanced analytics.

Example: Monitoring failed logins using KQL

You can use the following Kusto Query Language (KQL) query in Azure Log Analytics to find failed login attempts for your Synapse SQL pool:


AzureDiagnostics
| where ResourceProvider == "MICROSOFT.SYNAPSE"
| where Category == "AuditLogs"
| where OperationName == "LOGIN_FAILED"
| project TimeGenerated, ResourceName, CallerIpAddress, User
| order by TimeGenerated desc
            
Note: Regularly review and tune your alert rules to minimize false positives and ensure you are alerted to genuine security events.
Tip: Consider creating custom dashboards in Azure Monitor or Azure Sentinel to visualize key security metrics and security incidents related to your Synapse Analytics environment.

Best Practices for Security Monitoring