Collect CSE Events with the CSE Add-on for Splunk

How-to guide

Index Cloud Secure Edge (CSE) events in Splunk Enterprise or Splunk Cloud Platform, mapped to the Splunk Common Information Model

  • Last validated: Nov 23, 2026
  • 15 minutes to read

How the add-on works

The SonicWall Cloud Secure Edge (CSE) Add-on for Splunk runs inside Splunk. On a schedule, it pulls new events from the CSE Events API and indexes them in Splunk. It also maps the events to the Splunk Common Information Model (CIM). The CIM is the shared set of field names that Splunk Enterprise Security and other CIM-based searches and dashboards read. Because the add-on calls the Events API itself, you do not need Cribl Stream, a script, or a Splunk HTTP Event Collector (HEC) token.

The add-on only reads from CSE. It uses a read-only API key, and your event data flows only from your CSE organization to your Splunk deployment. The add-on sends nothing to SonicWall or to any third party.

Events collected

The add-on collects these CSE event types:

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

For the fields in each event type, see Event Properties and Definitions.

Prerequisites

You need the following before you install the add-on:

  • Splunk. Splunk Cloud Platform, or Splunk Enterprise 10.2 or later. The add-on runs on Python 3.13, which Splunk includes from version 10.2. On an older version, the add-on does not run, and its configuration page shows “requires Splunk 10.2 or later (Python 3.13)”.
  • KV Store. The KV Store, the key-value database built into Splunk, must be enabled on the instance that runs the input. It is enabled by default. The add-on stores its collection position there.
  • Network access. The instance that runs the input needs outbound HTTPS (TCP 443) to the Command Center host for your region, directly or through a proxy:
    • US: net.banyanops.com
    • EU: eucc.console.banyanops.com
  • A synchronized clock. The instance that runs the input must keep its clock synchronized through Network Time Protocol (NTP) or the time service of its platform. The clock must not step backward. After a backward clock step, Splunk can reject the session that inputs use, and collection stops until you restart Splunk.
  • A CSE administrator account. You need it to create a read-only API key.

Where to install the add-on

The add-on needs two things configured in Splunk. An account holds the API key for one CSE organization, and an input is the scheduled job that collects events with that account. Step 4 and Step 6 create them.

The instance that runs the input calls the Events API. Search heads, the Splunk instances that run searches, need the add-on too, because it supplies the field extractions, eventtypes, and tags that searches use. In Splunk Cloud Platform, your deployment is called a stack.

Deployment Install the add-on on Create the account and input on
A single Splunk Enterprise instance The instance The instance
Splunk Cloud Platform, and the stack can reach the Command Center The stack The stack
Splunk Cloud Platform, and the stack cannot reach the Command Center The stack and a heavy forwarder The heavy forwarder only. See Deploy on a heavy forwarder.
Distributed Splunk Enterprise The search heads, and the instance that runs the input (a heavy forwarder or an indexer) The instance that runs the input only

Create each input on one instance only. If the same input exists on two instances, Splunk collects every event twice.

Step 1: Install the add-on

1.1 In Splunk Web, select Apps > Find More Apps.

1.2 Search for SonicWall Cloud Secure Edge, and select Install.

1.3 If Splunk prompts you to restart, restart Splunk.

To install on Splunk Enterprise from a file instead, download the package from Splunkbase, and select Apps > Manage Apps > Install app from file.

If your Splunk Cloud Platform stack does not allow self-service installation, ask Splunk Support to install the add-on from Splunkbase.

Step 2: Create a read-only API key

2.1 In the Command Center, navigate to Settings > API Keys and select Add API Key.

2.2 Configure the key:

  • Name: a name for the Splunk deployment, for example Splunk add-on
  • Scope: ReadOnly

2.3 Copy the generated API Key Secret. The Command Center shows the secret once.

Use a separate key for each Splunk deployment. You can then rotate or revoke one key without breaking your other integrations. For more detail on API keys and scopes, see Authentication with API Key and API Key Privilege Levels.

Step 3: Create an index

3.1 In Splunk Web, navigate to Settings > Indexes, and select New Index.

3.2 Name the index, for example cse. The searches on this page use cse.

3.3 Set the retention of the index to the requirements of your organization, and save the index.

Step 4: Add an account

The add-on calls each CSE organization a tenant. Add one account for each CSE organization that you collect from.

4.1 Open the add-on from the Splunk app menu: Apps > SonicWall Cloud Secure Edge Add-on for Splunk.

4.2 Select Configuration > Accounts > Add.

The Add Accounts dialog with the Name, Region, and API key fields

4.3 Configure the account:

Field Value
Name A unique name for the CSE organization, for example your organization name. Use letters, digits, hyphens, and underscores, and begin with a letter or digit. The name appears in the source field of each event.
Region The Command Center region of your organization: US or EU.
API key The API Key Secret from Step 2. Splunk stores it encrypted.

4.4 Select Add. The add-on tests the key against the Events API before it saves the account. If CSE rejects the key, the message “Invalid API key.” appears, and the add-on does not save the account.

Step 5: Configure a proxy and logging (optional)

  • Configuration > Proxy: if outbound traffic from Splunk must use a proxy, enter the proxy host and port. If the proxy requires a user name and password, enter them too.
  • Configuration > Logging: set the log level of the add-on. The default is INFO.

Step 6: Create an input

The input is the add-on’s own input type, CSE Events, which calls the Events API. It is not an HEC token, so you do not configure anything in Settings > Data inputs.

6.1 In the add-on, open the Inputs tab. It is the first tab, to the left of Configuration.

6.2 Select Create New Input.

The Add CSE Events dialog with the input fields and their default values

6.3 Configure the input:

Field Default Value
Name   A unique name, using the same characters as an account name. The add-on keeps its collection position under this name.
Account to use   The account from Step 4.
Index   The index from Step 3. If you change the index later, only new events go to the new index. Events already collected stay in the old index.
Interval 300 Seconds between runs, from 60 to 3600.
Settle lag 120 Seconds to wait before collecting recent events, from 60 to 3600. CSE stores some events a short time after they occur, and the wait makes sure that the add-on does not miss them.
Page size 1000 Events requested in each API call, from 1 to 10000.
Minimum severity All (including DEBUG) All (including DEBUG) collects every event. INFO and above and ERROR only reduce volume.
Event types Empty Optional. The event types to collect, separated by the pipe character, for example Access|Identity. Use the names in Events collected. Leave the field empty to collect all types.
Initial backfill 24 Hours of history to collect the first time the input runs, from 1 to 312 (13 days).

6.4 Select Add.

The initial backfill applies only to the first run of a new input name. To collect history again later, create an input with a new name.

Step 7: Verify collection

7.1 Wait one interval for the first run to finish.

7.2 In Splunk Web, open Search & Reporting, and search for events:

index=cse sourcetype="sonicwall:cse:event" | stats count by type

7.3 Check that the runs complete:

index=_internal source=*ta-sonicwall-cse* action=run_complete
| table _time input windows events lag_seconds duration_ms

When lag_seconds is close to the settle lag (120 by default), collection is current. During the initial backfill, the first runs take longer, and the lag falls with each run.

Event data in Splunk

Each event that the add-on indexes has these values:

  • Sourcetype: sonicwall:cse:event. Each event is the JSON object that CSE returns, unchanged.
  • source: sonicwall_cse:<account name>
  • host: the Command Center host that the add-on called, for example net.banyanops.com
  • _time: the created_at value of the event, with millisecond precision
  • Event ID: id, also available as event_id. It is unique for each CSE event.

The sections that follow cover the CIM mapping, events with no CSE user, and the source addresses on Service Tunnel traffic.

CIM mapping

The add-on assigns each CSE event an eventtype. An eventtype is a Splunk label for events that match a saved search, and Splunk uses eventtypes to place events in CIM data models.

CSE events Eventtype CIM data model
User sign-ins (Identity Grant and Deny) sonicwall_cse_authentication Authentication
Command Center administrator sign-ins sonicwall_cse_admin_login Authentication (Privileged)
Service Tunnel connect and disconnect sonicwall_cse_tunnel_start, sonicwall_cse_tunnel_end Network Sessions (VPN)
Connections and resource access sonicwall_cse_connection, sonicwall_cse_resource Network Traffic
Web blocks and malware file inspections sonicwall_cse_web_block, sonicwall_cse_malware_inspect Web
DNS blocks sonicwall_cse_dns_block Network Resolution (DNS)
Trust scoring, device registration, ITP status, network agent restarts, identity check steps, and Service Tunnel grants sonicwall_cse_trustscore, sonicwall_cse_registration, sonicwall_cse_itp_status, sonicwall_cse_netagent_restart, sonicwall_cse_identity_check, sonicwall_cse_tunnel_grant None. Search these by eventtype.

All CSE events carry the eventtype sonicwall_cse. The add-on keeps the raw CSE action and severity in vendor_action and vendor_severity.

Events with no CSE user

When an event has no CSE user, user is unknown on sign-ins and on blocked AI prompt submissions (SAASSecurity). On a blocked AI prompt, this usually means that no one was signed in to CSE on the device, for example on a shared device. The account that the AI application blocked is still in url_filtering.url_filtering_result.saas_identity.

Source addresses on Service Tunnel traffic

On traffic through a CSE Service Tunnel, CSE reports the tunnel address of the device (for example 100.64.0.0) before the device’s own address. The add-on sets src, src_ip, and src_port from the device’s own address, and puts the tunnel address in tunnel_ip. Service Tunnel connect and disconnect events carry only the tunnel address, so it is also their src_ip.

The add-on always treats addresses in 100.64.0.0/10 as tunnel addresses, because that range contains all default CSE tunnel ranges. If your organization uses an end user device range outside 100.64.0.0/10, the add-on reads tunnel addresses as device addresses, and src_ip shows the tunnel address. To fix it, see Set a custom tunnel range.

Set a custom tunnel range

Your organization sets its end user device range in the Command Center, under Settings > Configuration > Service Tunnel. If that range is outside 100.64.0.0/10, set the same range in the add-on:

1. In Splunk Web, select Settings > Fields > Field transformations.

2. Edit sonicwall_cse_tunnel_range, the field transformation in the add-on app.

3. Change its format to cse_tunnel_cidr::<your range>, for example cse_tunnel_cidr::172.20.0.0/16.

On Splunk Enterprise, you can set FORMAT in the local/transforms.conf file of the add-on instead. The change applies to searches immediately, including searches over events already collected.

Example searches

Failed user sign-ins by reason:

index=cse eventtype=sonicwall_cse_authentication action=failure
| stats count by user reason

Devices whose trust level changed:

index=cse eventtype=sonicwall_cse_trustscore
| stats latest(_time) as last_seen count by user_principal.device.serial_number

Blocked web and DNS requests by category and destination. DNS blocks carry the requested name in query, and web blocks carry the host in dest.

index=cse (eventtype=sonicwall_cse_web_block OR eventtype=sonicwall_cse_dns_block)
| eval destination=coalesce(dest, query)
| fillnull value="(none)" category
| stats count by type category destination

Blocked AI prompt submissions by blocked account:

index=cse type=SAASSecurity
| stats count by user url_filtering.url_filtering_result.saas_identity app

Recovery after interruptions

The add-on records exactly how far it has collected. After any interruption in the table below, it continues from that point, so you do not miss events.

Situation What the add-on does
CSE is unavailable or slow Retries, then ends the run without moving its position forward. When CSE responds again, the add-on collects every event it missed.
Splunk restarts, upgrades, or goes down Resumes where it stopped, without skipping events.
A network or proxy outage Collects the missed period when the connection returns, as for a CSE outage.
CSE stores some events late Waits for the settle lag before it collects recent events, and follows the order in which CSE stores events, so it still collects late events.
You rotate the API key Keeps the collection position, so it does not collect any event twice or skip any. It tests the new key before saving it, so a mistyped key cannot replace a working one.
The API key is deleted or revoked Pauses collection and logs an error on every run. After you save a valid key, it collects the whole paused period.
A large burst of events Divides busy periods into smaller requests and collects all of them.
You upgrade the add-on Keeps the collection position.

Limitations

The add-on has these limits:

  • CSE keeps events for 14 days. If collection stops for longer than 14 days, the add-on cannot collect the events older than that. Collection stops, for example, when an input is disabled or a key is invalid. The add-on logs action=retention_gap when this happens.
  • Rare duplicates. If Splunk stops after it writes a batch of events but before the add-on records its position, the add-on collects that batch again. A batch holds at most 15 minutes of events, and no events are lost. Duplicates are most likely when you restart Splunk while the add-on catches up after an outage. To remove duplicates in a search, add | dedup id.
  • Heavy forwarder restarts can lose events. See Forwarder restarts can lose events.
  • Key problems need your action. An invalid or deleted key pauses collection until you save a valid key. Set up the alerts in Troubleshooting, so that you notice a pause well within the 14 days.

Upgrade the add-on

Install the new version over the existing one. On Splunk Enterprise, select the update link for the add-on in Apps > Manage Apps, or use Install app from file with Upgrade app selected. The add-on keeps its accounts, inputs, and collection position, and collection continues where it stopped.

Rotate the API key

1. In the Command Center, create a new read-only API key, as in Step 2.

2. In the add-on, edit the account, paste the new key, and save. The add-on tests the key before it saves it.

3. Confirm that the next runs complete, with the second search in Step 7.

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

Deploy on a heavy forwarder

A heavy forwarder is a full Splunk Enterprise instance that collects data and forwards it to other Splunk instances. Use a heavy forwarder when your Splunk Cloud Platform stack cannot reach the Command Center host. Also use one when collection must run inside your own network, for example behind a proxy. The add-on collects on the heavy forwarder, and the heavy forwarder sends the events to Splunk Cloud Platform. Searches, CIM mappings, and dashboards run on the stack as usual.

The heavy forwarder must run Splunk Enterprise 10.2 or later, with the KV Store enabled. A universal forwarder cannot run the add-on. The subsections after the steps explain how the forwarder can lose events and how to recover them.

1. On Splunk Cloud Platform, create the index for CSE events, for example cse.

2. On Splunk Cloud Platform, install the add-on. Do not create an account or input on the stack. The add-on on the stack supplies the field extractions, eventtypes, and tags.

3. On Splunk Cloud Platform, download the universal forwarder credentials package. The package works for heavy forwarders too.

4. On the heavy forwarder, install the credentials package.

5. On the heavy forwarder, turn on indexer acknowledgment if the credentials package does not already turn it on. With indexer acknowledgment, the forwarder keeps events until Splunk Cloud Platform confirms that it stored them. In $SPLUNK_HOME/etc/system/local/outputs.conf, in the [tcpout:<group>] stanza from the credentials package, set:

useACK = true

6. On the heavy forwarder, create an index with the same name as the index on the stack. This index holds no data, but the input form lists only local indexes.

7. On the heavy forwarder, install the add-on, and restart Splunk.

8. On the heavy forwarder, add the account. If your network requires a proxy, configure it too.

9. On the heavy forwarder, create the input with the index from step 1.

10. On Splunk Cloud Platform, run the searches in Step 7. The add-on log from the forwarder is searchable on the stack too.

Forwarder restarts can lose events

A heavy forwarder with indexer acknowledgment holds events while Splunk Cloud Platform is unreachable, and sends them when it returns. If its queue fills, the forwarder slows the input instead of dropping events.

Warning: If the forwarder restarts or fails while Splunk Cloud Platform is unreachable, it loses the events in its memory. The add-on has already recorded those events as collected, so it does not collect them again. Do not restart the forwarder while it cannot reach Splunk Cloud Platform.

Recover events after a forwarder restart

If the forwarder lost events in a restart, CSE still keeps the events for 14 days. To recover them:

1. Create a temporary second input whose initial backfill reaches back before the restart.

2. Disable the temporary input after its first run.

3. Add | dedup id to searches over that period, because the temporary input also collects events that the forwarder already delivered.

Troubleshooting

Each input writes a log that you can search in Splunk:

index=_internal source=*ta-sonicwall-cse*

Set up an alert for each of these conditions, so that you notice a collection pause before CSE deletes the events:

  • No action=run_complete event for an input in the last hour.
  • Any event with log_level=ERROR.

The add-on logs these messages:

Message Meaning and action
Invalid API key. (when you save an account) CSE rejected the key. Check that it is the current key for this organization and region.
Could not connect to <URL> (when you save an account) The instance cannot reach CSE. Check DNS, the firewall, and the proxy settings.
The CSE API rejected the API key. The saved key no longer works, because an administrator deleted or revoked it, or it expired. Save a valid key. The add-on then collects the paused period.
action=retry (WARNING) A temporary CSE or network problem, and the add-on is retrying. No action is needed unless it persists.
Giving up after N attempts The run ended without moving forward. The next run tries again from the same point.
action=kvstore_initializing (WARNING) The KV Store is still starting after a restart. The add-on skips the run, and the next run continues.
action=retention_gap (WARNING) Collection stopped for more than 14 days, so events in the reported period may be lost.
splunk.AuthenticationFailed Usually caused by a system clock that stepped backward. Correct the time synchronization, and restart Splunk.
requires Splunk 10.2 or later (Python 3.13), on the configuration page, or in splunkd.log with Unable to initialize modular input Splunk is older than 10.2 and started the add-on with Python 3.9, so the add-on does not run. Upgrade Splunk to 10.2 or later.

Uninstall the add-on

1. Disable or delete the inputs of the add-on.

2. Remove the add-on:

  • On Splunk Enterprise, delete the $SPLUNK_HOME/etc/apps/TA-sonicwall-cse folder, and restart Splunk.
  • On Splunk Cloud Platform, uninstall the add-on from Apps > Manage Apps.

3. In the Command Center, delete the API key that the add-on used.

Events already indexed stay in their index until its retention removes them or you delete the index.

Support

SonicWall supports the add-on. To open a case, contact SonicWall Support.

Was this page helpful?