1curl "https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/f_ecom_bcxj_prd/zones/{zoneId}/logpush/jobs`
2--request 'POST' \
3--header 'Authorization: Bearer <access_token>' \
4--header 'Content-Type: application/json' \
5--data-raw `{
6 "name": "ExampleLogPushJob",
7 "destinationPath": "s3://example-bucket/log?region=us-east-1",
8 "logType": "http_requests",
9 "ownershipChallengeToken": "Put your ownership challenge token here",
10 "filter": "{\"where\":{\"and\":[{\"key\":\"ClientRequestPath\",\"operator\":\"contains\",\"value\":\"/example-path\"}, {\"key\":\"EdgeResponseStatus\",\"operator\":\"in\",\"value\":[502, 503, 504]}]}}",
11 "logFields": [
12 "CacheCacheStatus",
13 "CacheResponseBytes",
14 "ClientRequestPath",
15 "ClientRequestBytes",
16 "ClientRequestHost",
17 "ClientRequestUserAgent",
18 "EdgeResponseStatus",
19 "EdgeResponseBytes",
20 "EdgeStartTimestamp",
21 "EdgeTimeToFirstByteMs"
22 ]
23}`