Ingest logs and data from Salesforce
Ingest Salesforce logs and data into Cortex XSIAM.
Cortex XSIAM supports the collection of Salesforce near-real-time (NRT) events, Setup Audit Trail, Content Metadata, Accounts, event log files, and snapshots. This integration improves threat detection accuracy and eliminates duplicate alerts by ensuring critical multi-event alerts are captured in near-real-time rather than relying on hourly or daily log files.
Prerequisite
Cortex XSIAM:
To manage collection integration in Cortex XSIAM, requires View/Edit RBAC permissions for Log Collections and Data Sources (under Configurations → Data Collection).
Salesforce:
Edition: Professional (with API access), Enterprise, or higher.
Integration user requirements: To ensure seamless ingestion between Salesforce and Cortex XSIAM, verify that the Salesforce user profile used for data integration meets the following requirements:
API enabled: The integration user's Profile or assigned Permission Set MUST have the API Enabled system permission checked. Without this, no objects can be fetched.
User license status: Ensure the integration user is Active and not locked out. (Required for
TenantSecurityLoginandTenantSecurityUserPerm).
License: A Salesforce Shield license is required to avoid limited data fetching and errors. For more information, see Salesforce Shield.
Ensure that
To use the client credentials flow required for Salesforce–Cortex XSIAM integration, you must create a connected app for Cortex XSIAM in Salesforce, and configure its OAuth settings and access policies, as described in this procedure. The connected app must be created by a Full System Admin.
Ensure your organization has a Salesforce Shield license.
For more information, see Salesforce Shield.
For more information, see Event Monitoring Introduction.
Ensure that you have the required licenses. If these prerequisites are not met, fetching of security and NRT event data will be severely limited, and errors will be generated.
In Setup → Event Monitoring Settings, ensure that Generate event log files is enabled.
In Setup, verify that there are event log files in the Event Log File Browser.
In Setup → Permissions Sets, verify that there is a permission set called Event Monitoring.
Near-real-time event settings: You must manually toggle each desired event, such as
ApiEventandReportAnomalyEvent, to Enabled under Setup → Event Monitoring Settings.Legacy Batch access: If collecting
EventLogFiles, ensure Generate event log files is enabled under Setup → Event Monitoring Settings; in Setup, verify that files exist in the Event Log File Browser, and in Setup → Permissions Sets verify a permission set named Event Monitoring exists.Administrative access: To use the client credentials flow required for the Salesforce and Cortex XSIAM integration, a Full System Admin (read only) must create an External Client App in Salesforce and configure its OAuth settings and access policies as described in the configuration tasks below.
For more detailed reference information, see the following:
Unlike other data collector setups, in this case, the setup includes obtaining an OAuth 2.0 code from Salesforce, and this code is only valid for 15 minutes. Therefore, make sure that you enable the data collector within 15 minutes of obtaining the authorization code.
How to configure the Salesforce data source
Perform the following procedures in the order that they appear, below.
Troubleshooting
If the authorization token is not created and sent to Cortex XSIAM after the 15-minute timeout period, an authorization failure error will be returned. To retry:
In Cortex XSIAM, right click the collector instance and select Edit.
The log collection window will display again, allowing you to edit settings and retry getting the authorization code.
Last updated
Was this helpful?
