Salesforce Commerce Cloud is a multi-tenant, cloud-based commerce platform. Integrate Salesforce Commerce Cloud with
Datadog to view and parse your logs using Datadog Logs.
To configure Salesforce Commerce Cloud to allow access for Datadog to import log data, you must create
an API client. Then, register that API client with Datadog.
Follow the steps in the Commerce Cloud instructions for creating a client. In the Token Endpoint Auth Method field choose private_key_jwt. For the Access Token Format field choose JWT. Note: This integration only supports API clients provisioned using the main Account Manager instance at https://account.demandware.com/.
Make note of the API client ID and secret (also called the username and password.) They are needed in subsequent steps.
Under Administration > Organization > WebDAV Client Permissions in your Business Manager interface, add the following JSON. Make sure to insert your client ID in the appropriate place.
Enter your Business Manager domain (for example, my-0001.sandbox.us02.dx.commercecloud.salesforce.com) and the API client ID and secret obtained in the previous step.
Wait ten minutes to see logs coming in under the source salesforce.commerce.cloud.
The SFCC Log Center represents log data differently than Datadog does. For instance, some error logs with large stack traces are broken into two log events in the SFCC Log Center, while the stack trace details are omitted in Datadog. This results in a discrepancy in the total count of log events between the two systems.