Configure Salesforce Log Collector
The Alert Logic Salesforce Collector is an AWS-based API Poll (PAWS) log collector library mechanism designed to collect logs from the Salesforce Customer relationship management (CRM) platform.
You can find Salesforce logs collected with keyword search in the Alert Logic console Get Started with Search page. Alert Logic also generates security incidents from Salesforce logs in the Incidents page. For more information about authentication application security content, see Authentication Application Security Incidents.
The Alert Logic Salesforce collector polls the following APIs for various types of data:
You must complete the following to successfully configure your Salesforce Log Collector:
Before you begin, ensure you have System Administrator privileges for the Salesforce account, and have a digital certificate generated. You must configure the permission set, create a client app, and then edit the policies and permission sets in the Salesforce console.
Configure a Permission Set in Salesforce
To configure a permission set:
- In the Salesforce console, click the cog icon on the upper-right corner, and then click Setup.
- In Administration, click Users, and then click Permission Sets.
- Click the permission set for which you want to grant access.
- Click System Permissions, and select the following:
- Apex REST Services
- API Enabled
- View Event Log Files
- Manage Users (Required for LoginHistory objects only to view associated geo-data)
Create a Connected App
You must select the API location (URL callback). You have the option to poll one of two APIs depending on the type of Salesforce account:
- Salesforce account (https://login.salesforce.com)
- Salesforce sandbox account (https://test.salesforce.com)
Ensure your digital certificate is generated, which you will need to create the connected app. If you need a digital certificate, you can reference the Salesforce Create a Private Key and Self-Signed Digital Certificate guide to generate your own self-signed certificate.
To create a Connected App:
- From Setup, click Apps, and then click App Manager.
- Click New Connected App.
- In the Basic Information section, fill out the required fields:
- Enter a name for the connected app.
- Enter an API name.
- Enter the contact email.
- You can fill out the remaining fields in this section, although you are not required.
- In the API section, select Enable OAuth Settings.
- Select Enable for Device Flow, and then in the Callback URL field, enter the callback URL (API location) that Salesforce calls back to Alert Logic during OAuth.
- Select the Use Digital Signatures, and then click Choose File to upload the server.crt file that contains your digital certificate.
- Add Perform requests at any time (refresh_token, offline_access) and Manage user data via APIs (api) in the selected OAuth scopes.
- Click Save.
You must edit the policies to allow your approved users as permitted users to the connected app you just created.
To edit your policies:
- Click Manage.
- Click Edit Policies.
- In the OAuth Policies section, select Admin approved users are pre-authorized for Permitted Users, and then click OK.
- Click Save.
Manage permission sets
You must manage the permission set to apply the permission set you created earlier.
To manage permission sets:
- Click Manage Profiles.
- Click Manage Permission Sets.
- Select the permission set you created earlier.
- Click Save.
After you decide on the API location and create authentication information in Salesforce.com, you must complete the final steps for collection in the Alert Logic console. This configuration is an account-level integration, which means you can configure more than one instance of Salesforce. This capability is useful when more than one instance of the application exists.
To access the Application Registry page, click the menu icon (). Click Configure, and then click Application Registry.
To add a new application collection:
- In the Application Registry, click the Salesforce tile.
- In the Application Name field, enter a name for this Salesforce collection instance.
- Under Collection Method and Policy, choose which callback URL from which you want to poll.
- In the Client ID field, enter your client ID. Salesforce also refers to the client ID as a consumer key.
- In the User ID field, enter your Salesforce User ID (ex: email@example.com).
- In the Secret Key field, enter the RSA private key associated with the certificate associated with your Connected App you configured earlier.
- Select the objects from which you want to collect.
You must enable Salesforce event monitoring on your account to access the following objects:
- (Optional) Enter a Collection Start time using a format such as (2020-01-01T16:00:00Z). If the Collection Start field is left blank, only logs generated after you configure this collection instance will be collected.
The collection start time determines how far back you want Alert Logic to collect logs if data already exists in your account. Alert Logic can only collect logs up to 30 days prior to the date you configured this collection instance.
- Click ADD. Wait a few minutes for the application to create and appear in your application list. Do not click ADD again.
In the Applications List tab, if you configured your application correctly, within approximately 10 minutes you will see Configured next to the application. For more information about how to add instances or manage existing collecting applications, see Manage your configured applications.
Security Content for incidents
- Administrative Actions
- User Login AD
- User Behavior AD
For more information about authentication application security content, see Authentication Application Security Incidents.