Send CSE Events to Microsoft Sentinel

How-to guide

Collect Cloud Secure Edge (CSE) events in Microsoft Sentinel with the SonicWall solution from Content hub, including a workbook, analytic rules, and hunting queries

  • Last validated: Dec 1, 2026
  • 12 minutes to read

How the solution works

The SonicWall Cloud Secure Edge (CSE) solution for Microsoft Sentinel collects the event log of your CSE organization through the CSE Events API. It stores the events in your Microsoft Sentinel workspace. The solution includes a parser, a workbook, analytic rules, and hunting queries. With them, you can monitor CSE sign-ins, private access, device trust, and Internet Access in Microsoft Sentinel. This page describes solution version 3.0.0.

The connector uses the Microsoft Sentinel Codeless Connector Framework (CCF). Microsoft Sentinel polls the CSE Events API every 5 minutes, and events usually arrive within 10 minutes. You do not need servers, functions, or agents.

The connector only reads from CSE. It uses a read-only API key, and your event data flows only from your CSE organization to your Microsoft Sentinel workspace. Nothing is sent to SonicWall or to any third party.

Solution content

Content Name Purpose
Data connector SonicWall Cloud Secure Edge Events Polls the CSE Events API and writes events to the CSEEvents_CL table
Parser CSEEvents function Returns the events with named columns for the user, device, client address, service, trust, and URL filtering
Workbook SonicWall Cloud Secure Edge Events Shows ingestion and health, access and sign-ins, devices and trust, and Internet Access and threats
Analytic rules 7 rule templates See Analytic rules
Hunting queries 6 queries See Hunting queries

Events collected

The connector collects all CSE event types and severities, including DEBUG.

Activity CSE event type
User sign-in through your identity provider, with device certificate, ownership, and trust checks Identity
Device registration with the CSE app Registration
Device trust level calculations and administrator trust overrides TrustScoring
Connections and requests to protected services, and Service Tunnel connect and disconnect Access
Administrator sign-in. This covers successful single sign-on (SAML) sign-ins to the Command Center, and failed sign-ins to the local administrator account. AdminLogin
Web and DNS requests blocked by Internet Threat Protection (ITP) threat rules Threat
Web and DNS requests blocked by ITP content category rules Compliance
Malware Download Protection file inspections and blocked downloads Malware
Prompt submissions to AI applications blocked because they came from an unapproved account. With prompt capture on, allowed prompts too. See AI Prompts. SAASSecurity
ITP being enabled or disabled on a device ITPStatus
Access Tier network agent restarts NetagentRestart

Prerequisites

You need the following before you install the solution:

  • Microsoft Sentinel. A Log Analytics workspace with Microsoft Sentinel enabled, in the Azure public cloud.
  • Azure permissions. To install the solution and connect the connector, you need read and write permissions on the workspace, for example the Microsoft Sentinel Contributor role. The backfill tool needs other Azure permissions. See Backfill missed events.
  • A CSE administrator account. You need it to create an API key with the ReadOnly scope.
  • One CSE organization per workspace. Each workspace connects to one CSE organization. To collect events from several CSE organizations, use a separate workspace for each.
  • No network changes. Microsoft Sentinel calls the Command Center host for your region over HTTPS, so you need no network changes on your side:
    • US: net.banyanops.com
    • EU: eucc.console.banyanops.com
  • A budget for ingestion. CSE events are billed as Log Analytics and Microsoft Sentinel ingestion. Plan for the event volume of your organization. The Ingestion and health section of the workbook shows it.

Microsoft Sentinel in the Microsoft Defender portal

Microsoft is moving Microsoft Sentinel to the Microsoft Defender portal. After March 31, 2027, Microsoft Sentinel will be available only in the Defender portal. Microsoft is not retiring Microsoft Sentinel itself, and this solution works in both portals.

  • No migration of the solution is needed. When a workspace is connected to the Defender portal, the connector keeps collecting events. The CSEEvents_CL table, the CSEEvents function, the workbook, the analytic rules, and the hunting queries continue to work, and nothing is reinstalled or converted.
  • Connecting the workspace is automatic in most cases. Microsoft usually connects the workspaces of customers who started using Microsoft Sentinel after July 1, 2025 to the Defender portal automatically. Otherwise, an administrator connects the workspace once in the Defender portal, in System > Settings > Microsoft Sentinel > Connect a workspace. Microsoft’s documentation lists the roles needed.
  • Menu paths differ. This page gives the paths in the Azure portal. In the Defender portal, the solution is in Content management > Content hub. The connector is in Setup & configuration > Data management > Data & connectors > Connectors. The workbook is in Dashboards & reports > Workbooks.

Step 1: Install the solution

1.1 In the Azure portal, open Microsoft Sentinel, and select your workspace.

1.2 Select Content management > Content hub, search for SonicWall Cloud Secure Edge, and select it.

1.3 Select Install.

The installation adds the data connector, the CSEEvents function, the workbook template, and the analytic rule and hunting query templates. Nothing collects data until you connect the connector in Step 3.

Step 2: Create a read-only API key

2.1 In the Command Center, navigate to Settings > API Keys.

2.2 Create an API key for Microsoft Sentinel with the ReadOnly scope.

2.3 Copy the key. You enter it once, in the next step.

Use a separate key for each workspace. You can then rotate or revoke one key without affecting your other integrations. See Retrieve Events with the API.

Step 3: Connect the data connector

3.1 In Microsoft Sentinel, select Configuration > Data connectors, select SonicWall Cloud Secure Edge Events, and select Open connector page.

3.2 Under Command Center API host, select the host for your region. The US host is net.banyanops.com, and the EU host is eucc.console.banyanops.com.

3.3 Under CSE API key, paste the key from Step 2.

3.4 Select Connect.

The status changes to Connected, and the button changes to Disconnect. The connector collects events from the time of connection onward, but not events from before it. To add up to 14 days of earlier events, use the backfill tool. See Backfill missed events.

The SonicWall Cloud Secure Edge Events connector page with the status Connected, the last log received, and version 3.0.0

The Event connector failing to fetch data analytic rule and the Connector health panel of the workbook use the SentinelHealth table. To fill it, in Microsoft Sentinel, select Settings > Settings > Auditing and health monitoring > Enable. Microsoft Sentinel then records the fetch status of the connector about once an hour.

Step 5: Create the analytic rules

Analytic rules are installed as templates, and they do not run until you create rules from them.

5.1 Select Configuration > Analytics > Rule templates.

5.2 Filter by the data source SonicWall Cloud Secure Edge Events.

5.3 Select a template, and select Create rule.

Create rules from at least the two health templates, Event connector failing to fetch data and No events ingested. Without them, nobody notices a stopped connector until events are missing.

Step 6: Verify collection

About 10 minutes after you connect, check that events arrive. In Microsoft Sentinel, select General > Logs, and run this query:

CSEEvents
| summarize Events = count(), Latest = max(TimeGenerated) by EventType

After health monitoring has been on for about an hour, check that the connector reports success:

SentinelHealth
| where SentinelResourceType == "Data connector" and SentinelResourceName contains "CSEEventsPoller"
| project TimeGenerated, Status, Description

Event data in Microsoft Sentinel

  • Table. CSEEvents_CL. Each row is one CSE event. The RawEvent column keeps the full event, as CSE returned it.
  • Function. CSEEvents. Use it for searches, rules, and workbooks. It returns each event once, with named columns.
  • TimeGenerated. The time the event occurred in CSE (created_at), in UTC.
  • Event ID. EventId, which is unique for each CSE event.

Main columns of the CSEEvents function

Column Content
TimeGenerated, EventTime The time the event occurred. EventTime is always the CSE event time, including for events that the backfill tool added with --allow-old.
EventType, EventSubType, Action, Severity, Result, Message The CSE type, sub-type, action, severity, result, and message
OrgId, OrgName The CSE organization
UserEmail, UserName, UserRoles The CSE user
DeviceId, DeviceName, DeviceSerialNumber, DevicePlatform, DeviceOwnership The user’s device
ClientIp, TunnelIp, ClientCountry, ClientCity, ClientUserAgent Where the request came from. See Tunnel addresses.
ServiceName, PolicyName, AccessLevel, RequestMethod, RequestPath, DestinationAddress The protected service and the request
TrustLevel, TrustScore, TrustProfileName, FailedFactors, PassedFactors Device trust
UrlDomain, UrlCategory, UrlFilterAction, BlockReason, FileHash, SaasIdentity Internet Access, malware, and AI application blocks
RawEvent The full CSE event

Tunnel addresses

On traffic through a CSE Service Tunnel, CSE reports the tunnel address of the device, for example 100.64.0.2, together with the device’s own address. The CSEEvents function puts the device’s address in ClientIp, and the tunnel address in TunnelIp.

The function treats addresses in 100.64.0.0/10 as tunnel addresses, because that range contains all default CSE tunnel ranges. If your organization changed its end user device range to a range outside 100.64.0.0/10, edit the range in the CSEEvents function, in Logs > Functions. See Modify the End User Device IP Range.

Example queries

Failed user sign-ins by reason:

CSEEvents
| where EventType == "Identity" and Action == "Deny"
| summarize count() by UserEmail, Message

Devices whose trust level changed to AlwaysDeny:

CSEEvents
| where EventType == "TrustScoring" and TrustLevel == "AlwaysDeny"
| summarize arg_max(TimeGenerated, UserEmail, FailedFactors) by DeviceSerialNumber

Blocked web and DNS requests by category and destination:

CSEEvents
| where EventType in ("Threat", "Compliance")
| summarize count() by EventType, UrlCategory, UrlDomain

Workbook

To add the workbook, select Threat management > Workbooks > Templates, select SonicWall Cloud Secure Edge Events, and select Save. Filters at the top of the workbook select the time range, organization, user, device, and client IP address. The workbook has four sections:

  • Ingestion and health. Events over time by type, events by type and action, the delay from event to Microsoft Sentinel, and connector health.
  • Access and sign-ins. Services accessed, users with the most denials, sign-ins by location, and failed administrator sign-ins.
  • Devices and trust. Current device trust levels, the most common failed trust factors, and devices by platform.
  • Internet Access and threats. Blocks over time, by category and reason, and by destination, and malware inspections.
The Ingestion and health section of the workbook, with events over time by type, event counts per type, and events by type, sub-type, and action

Analytic rules

All rule names begin with SonicWall CSE - . The rules evaluate events by the time they arrived in Microsoft Sentinel. Events that arrive late, or that the backfill tool adds later, are therefore still evaluated once.

Rule Severity Runs every Alerts when
Event connector failing to fetch data High 15 minutes The connector reports a failed fetch, for example after the API key was deleted. Requires health monitoring.
No events ingested Medium 1 hour No CSE events arrived for longer than the threshold, for any reason, including a disconnected connector
Malware download blocked High 1 hour Malware Download Protection blocked a file as malicious
Device trust level dropped to AlwaysDeny Medium 1 hour The trust level of a device changed to AlwaysDeny
Failed Command Center admin login Medium 1 hour A sign-in to the Command Center failed
Repeated access denials for one user Medium 1 hour One user was denied repeatedly within an hour
Sign-in from a new country for a user Medium 1 hour A user signed in from a country not seen for that user in the previous 14 days

Hunting queries

To run the hunting queries, select Threat management > Hunting, and filter by the data source SonicWall Cloud Secure Edge Events.

Query Finds
New users Users whose first CSE event in the last 14 days was within the last day
Device registrations Devices registered with CSE, with the user, platform, and ownership
Top sources of denials Client IP addresses and locations with the most denials and refused sign-ins
Private services accessed per user The private services each user connected to or was denied
Internet Access blocks per user Users with the most Internet Access blocks, with domains, categories, and reasons
Sign-in locations per user The countries and cities each user signed in from

Recovery after interruptions

The connector fetches each 5-minute period once, and it does not go back to periods it did not fetch. After any of these situations, use the backfill tool to add the missing events.

Situation What happens What to do
The connector is disconnected and connected again The connector does not collect events between the disconnect and the new connection. In testing, the gap was about 3 minutes for an immediate reconnect. Run the backfill tool for the period
The API key is deleted, expires, or is revoked Fetches fail, and the connector collects no events. The Event connector failing to fetch data rule alerts. Disconnect, connect with a valid key, and then run the backfill tool
A CSE or Azure outage Periods that fail are not fetched again Run the backfill tool for the period
A large burst of events The connector collects them, because it fetches each period in pages of 1,000 events None

Limitations

  • CSE keeps events for 14 days. Events older than that can no longer be collected or backfilled.
  • Azure keeps an event’s own time for about 48 hours. An event keeps its own time only if it arrives within about 48 hours, so backfill gaps within 48 hours. You can still add older events, but Microsoft Sentinel records them at the time of the backfill. The README of the backfill tool explains this limit.
  • One CSE organization per workspace. The connector page does not support a second connection in the same workspace.

Rotate the API key

1. In the Command Center, create a new API key with the ReadOnly scope.

2. On the connector page, select Disconnect. Note the time.

3. Select the Command Center API host, paste the new key, and select Connect.

4. After about 15 minutes, run the backfill tool for the period from shortly before the disconnect to shortly after the new connection. See Backfill missed events.

5. In the Command Center, delete the old key.

Backfill missed events

The SonicWall CSE backfill tool, cse_backfill.py, adds events that are missing from Microsoft Sentinel, for example after a reconnect, a key rotation, or an outage. It sends only the events that are not yet in Microsoft Sentinel, unchanged, through the connector’s own data collection rule. You can therefore run it more than once over the same period. It runs in Azure Cloud Shell, with no installation.

The tool and its README are published with the solution in the Microsoft Azure-Sentinel repository on GitHub. Read the README before you use the tool. It gives the Azure permissions needed, the download and integrity check, the steps, the 48-hour limit, and the options and messages. See CSE Event Backfill for Microsoft Sentinel on GitHub.

Troubleshooting

Create rules from the two health rule templates. See Step 5: Create the analytic rules. Together, the two rules cover a connector that fails and a connector that stops without reporting a failure.

Symptom Cause and action
No events after connecting Wait 10 to 15 minutes. If there are still none, check the region of the API host, and check that the key has the ReadOnly scope and is not deleted. Disconnect, and connect again with the correct values.
SentinelHealth shows a failed fetch, for example HTTP 401 CSE rejected the key. Disconnect, connect with a valid key, and then backfill the gap.
The No events ingested rule alerts The connector is disconnected or failing, or CSE produced no events. Check the connector page and the SentinelHealth table.
Events from two CSE organizations in one workspace This setup is not supported. Use a separate workspace for each organization.
Backfilled events appear at the backfill time The events were more than 48 hours old. Use EventTime to find them by the time they occurred.

Uninstall the solution

1. On the connector page, select Disconnect.

2. In Content hub, select the solution, and select Delete. Rules you created from templates are not removed. Delete them in Analytics if you no longer need them.

3. Optional: Delete the data collection rule and data collection endpoint that the connector created in the resource group of the workspace. Their names begin with Microsoft-Sentinel-CSEEventsDCR and ASI-.

4. In the Command Center, delete the CSE API key.

Events already collected stay in the CSEEvents_CL table until the retention of the workspace removes them.

Support

SonicWall supports the solution. To open a case, contact SonicWall Support.

Was this page helpful?