Menu
Create Logpush Job
Create Logpush job.
POST
/organizations/{organizationId}/zones/{zoneId}/logpush/jobsUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Create Logpush Job action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{createLogpushJob.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"destinationPath": "s3://customer-bucket/site-name/{DATE}?region=us-east-1&sse=AES256",
"name": "my-logpush-job",
"logFields": [
"ClientRequestBytes",
"ClientRequestHost",
"ClientRequestMethod"
],
"logType": "http_requests",
"filter": "{\"where\":{\"key\":\"ClientRequestPath\",\"operator\":\"contains\",\"value\":\"/example-path\"}}",
"ownershipChallengeToken": "abc00000000000000000000",
"enabled": true
}
Response
Returns 201 with an object. Read it in later steps with {{createLogpushJob.response.data.<field>}}.
{
"data": {
"jobId": 123456,
"name": "my-logpush-job",
"logType": "http_requests",
"filter": "{\"where\":{\"key\":\"ClientRequestPath\",\"operator\":\"contains\",\"value\":\"/example-path\"}}",
"logFields": [
"ClientRequestBytes",
"ClientRequestHost",
"ClientRequestMethod"
],
"destinationPath": "s3://customer-bucket/site-name/{DATE}?region=us-east-1&sse=AES256",
"enabled": false,
"lastComplete": "2023-01-02T00:00:00Z",
"lastError": "2023-01-01T10:00:00Z",
"errorMessage": "No permissions to write to destination bucket",
"createdOn": "2023-01-01T00:00:27Z"
}
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?