Microsoft Sentinel Connector
The Microsoft Sentinel connector streams Descope audit events and troubleshooting events to the Log Analytics workspace behind your Microsoft Sentinel deployment. Descope sends the events through the Azure Monitor Logs Ingestion API, and they land in two custom tables: DescopeAudit_CL for audit events and DescopeTroubleshoot_CL for troubleshooting events.
Descope authenticates to Microsoft Entra ID as an application that you register and posts batches of events directly to a data collection rule (DCR) in your Azure subscription. The DCR routes each stream into its table.
Configure Microsoft Sentinel Connector

Navigate to the Connectors page in the Descope Console and select Microsoft Sentinel to create a new connector. Before you fill in the form, create the Azure resources that the connector writes to, as described in Creating the Azure Resources.
Each field maps to a Terraform output from the Microsoft Sentinel Audit Stream guide:
- Connector Name: Provide a unique name for your connector. A unique name helps you tell connectors apart when you create more than one from the same template.
- Connector Description: Briefly explain the purpose of the connector (optional).
- Logs Ingestion Endpoint: The logs ingestion endpoint of the data collection rule, from the
ingestionEndpointoutput. The value ends in.ingest.monitor.azure.com. - Data Collection Rule Immutable ID: The immutable ID of the data collection rule, from the
dcrImmutableIdoutput. The value has the formdcr-followed by 32 hexadecimal characters. - Stream Name: The DCR stream that receives audit events, from the
streamNameoutput. The default isCustom-DescopeAudit_CL. - Directory (Tenant) ID: The Microsoft Entra tenant ID of the application, from the
tenantIdoutput. - Application (Client) ID: The client ID of the Entra application, from the
clientIdoutput. - Client Secret: A client secret of the Entra application, from the
clientSecretoutput. - Stream Audit Events: Select this option to send audit events to Microsoft Sentinel. When you enable it, you can stream all audit events or filter which audit events the connector sends.
- Stream Troubleshooting Events: Select this option to also send troubleshooting events. The option is off by default.
- Troubleshooting Stream Name: The DCR stream that receives troubleshooting events, from the
troubleshootStreamNameoutput. The default isCustom-DescopeTroubleshoot_CL. - Mask PII data: Select this option to mask personally identifiable information in the events.
Creating the Azure Resources
The connector writes to Azure resources that you create in your own subscription. You need four resources:
- The
DescopeAudit_CLandDescopeTroubleshoot_CLcustom tables in the Log Analytics workspace. - A
Directdata collection rule that routes theCustom-DescopeAudit_CLandCustom-DescopeTroubleshoot_CLstreams into those tables. - A Microsoft Entra app registration with a service principal and a client secret. Descope authenticates as this application.
- A Monitoring Metrics Publisher role assignment for the service principal on the data collection rule.
The recommended way to create these resources is the Microsoft Sentinel Audit Stream guide of the Descope Terraform provider. The guide gives you a Terraform module that creates all four resources and outputs every value that the connector needs. The guide also shows how to create the connector itself with the descope_microsoft_sentinel_connector resource, so you can manage the Azure side and the Descope side in one configuration.
Two Azure settings affect the connection after you create the resources:
- Public network access: The data collection rule must allow public network access, because Descope sends events to it over the internet.
- Role propagation: The Monitoring Metrics Publisher role assignment can take a few minutes to apply. A connector test that you run right after you create the resources can fail until the role assignment applies.
Rotating the Client Secret
Entra client secrets expire, and the connector stops delivering events when its secret expires. A secret that the Terraform module creates expires after two years by default. Update the Client Secret field in the connector before the old secret expires.
If you manage the connector with Terraform, the setup guide includes a terraform apply -replace command for rotation. Terraform creates the new secret and updates the connector before it revokes the old secret.
Viewing Audit Logs
After you create the connector, Descope streams new events to your workspace, and you can query them with KQL in Microsoft Sentinel or in Log Analytics. You can test the connector while you configure it, to confirm that a test event reaches your data collection rule. The events still appear in Descope under the Audit and Troubleshoot section of the Console.
The DescopeAudit_CL table holds one row per audit event. Its columns are TimeGenerated, Action, AuditType, ProjectId, UserId, ActorId, LoginIds, Tenants, Method, Device, Geo, RemoteAddress, and Data. The LoginIds, Tenants, and Data columns are dynamic, so you can query their nested values directly.
The DescopeTroubleshoot_CL table holds troubleshooting events, such as the tasks of each flow run. To follow one flow run, filter on its execution ID:
DescopeTroubleshoot_CL
| where ExecutionId == "<execution-id>"
| order by TimeGenerated asc
| project TimeGenerated, Level, TaskName, MessageDeduplicating Audit Events
Delivery is at-least-once, so an audit event can occasionally arrive twice. A resent event is an exact copy of the first, including its Data column, which carries the correlation ID of the request. Because the stream does not include a separate event ID, you can deduplicate on every column of the event. The query converts the dynamic columns to strings first, because distinct does not accept dynamic columns:
DescopeAudit_CL
| extend LoginIds = tostring(LoginIds), Tenants = tostring(Tenants), Data = tostring(Data)
| distinct TimeGenerated, Action, AuditType, ProjectId, UserId, ActorId, LoginIds, Tenants, Method, Device, Geo, RemoteAddress, DataThe result has one row per event, with the same columns as the table. To query nested values after deduplication, convert a column back with parse_json, for example parse_json(Data).
Next Steps
- Browse the other Audit & Troubleshooting connectors that Descope supports.
- Learn what happens when an endpoint rejects events in Managing Streaming Errors.
- Review the event types in Audit Events.