Skip to main content

Salesforce

Salesforce is a customer relationship management solution. The Account sObject is an abstraction of the account record and holds the account field information in memory as an object. This integration allows you to collect sObject data from Salesforce and send it to your Logz.io account.

Pull the Docker image of the Logz.io API fetcher
docker pull logzio/logzio-salesforce-collector
Run the Docker container
 docker run --name logzio-salesforce-collector \
--env SALESFORCE_URL="<<SALESFORCE_URL>>" \
--env CLIENT_ID="<<CLIENT_ID>>" \
--env API_VERSION="<<API_VERSION>>" \
--env USERNAME="<<USERNAME>>" \
--env PASSWORD="<<PASSWORD>>" \
--env SECURITY_TOKEN="<<SECURITY_TOKEN>>" \
--env SOBJECT_TYPES="<<SOBJECT_TYPES>>" \
--env FROM_TIMESTAMP="<<FROM_TIMESTAMP>>" \
--env INTERVAL="<<INTERVAL>>" \
--env LOGZIO_LISTENER_URL="<<LISTENER-HOST>>" \
--env LOGZIO_TOKEN="<<LOG-SHIPPING-TOKEN>>" \
logzio/logzio-salesforce-collector

Replace the parameter values as per the table below.

NameDescriptionRequired?Default
CLIENT_IDSalesforce App Client ID.Yes-
API_VERSIONSalesforce API versionNo55.0
USERNAMESalesforce account username (your email)Yes-
PASSWORDSalesforce account passwordYes-
SECURITY_TOKENSalesforce account security tokenYes-
SOBJECT_TYPESList of sObject types to collect. Each type must be separated by comma, for example: "TYPE1,TYPE2,TYPE3".Yes-
FROM_TIMESTAMPTimestamp from when to collect data. Must be in the following format: 2006-01-02T15:04:05.000Z .NoCurrent time minus 1 hour
LOGZIO_TOKENLogz.io logs token. Replace <<LOG-SHIPPING-TOKEN>> with the token of the account you want to ship to.Yes-
SALESFORCE_URLSalesforce URL.Nohttps://login.salesforce.com
INTERVALThe time interval to collect Salesforce data (in seconds).No5 (seconds)
LOGZIO_LISTENER_URLLogz.io listener logs URL. Use the listener URL specific to the region where your Logz.io account is hosted. Click to look up your listener URL. The required port depends whether HTTP or HTTPS is used: HTTP = 8070, HTTPS = 8071.Nohttps://listener.logz.io:8071
Check Logz.io for your logs

Give your logs some time to get from your system to ours, and then open Open Search Dashboards. You can filter for data of the salesforce field type value or type salesforce to see the Salesforce logs.

If you still don't see your logs, see log shipping troubleshooting.