Ingest logs and data from Salesforce
Ingest Salesforce logs and data into Cortex Cloud.
Cortex Cloud 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 Cloud:
To manage collection integration in Cortex Cloud, requires View/Edit RBAC permissions for Log Collections and Data Sources (under Configurations → Data Collection).
Salesforce:
Edition: Professional (with API access), Enterprise, or higher.
License: A Salesforce Shield license is required to avoid limited data fetching and errors. For more information, see Salesforce Shield.
To use the client credentials flow required for Salesforce–Cortex Cloud integration, you must create a connected app for Cortex Cloud 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 Cloud integration, a Full System Admin 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 Cloud after the 15-minute timeout period, an authorization failure error will be returned. To retry:
In Cortex Cloud, 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?
