Request B2C Commerce eCDN-WAF log files through the Open Commerce API (OCAPI). This reference covers the request constraints, an example call, the JSON log output, and the fields each log returns.
Which Salesforce Commerce Product Do I Have?
Each realm supports up to 24 pending log-request downloads. A minimum of five minutes is enforced between a log request's end time and the current time.
In this example, the current time is 11:00. To retrieve a 60-minute increment log file, set the start time to 09:50 and the end time to 10:50. The end time is more than five minutes before the current time, so the request is valid. Setting an end time within five minutes of the current time isn't allowed.
| OCAPI Call Example |
|---|
|
All OCAPI calls return all fields shown in the JavaScript Object Notation (JSON) log output.
| Log Output |
|---|
|
The JSON request format provides the category, field, and description for each value in the log output.
| Category | Field | Description |
|---|---|---|
| general | CacheStatus | Array of strings that define whether a resource caches. Possible sources: hit | miss | dynamic |
| client | ClientCountry | Country of the client IP address |
| client | ClientDeviceType | Client device type |
| client | ClientIP | IP addresses of the client |
| client | ClientIPClass | IP that is blocked for bad reputation status |
| clientRequest | ClientRequestHost | Host requested by the client |
| clientRequest | ClientRequestMethod | HTTP method of client request |
| clientRequest | ClientRequestURI | URI requested by the client |
| clientRequest | ClientRequestUserAgent | User agent reported by the client |
| edge | EdgeResponseStatus | HTTP status code returned by eCDN to the client |
| edge | EdgeStartTimestamp | UNIX nanosecond timestamp, the edge received request from the client |
| edgeWAF | FirewallMatchesActions | Array of actions (strings) that the eCDN firewall performed on a request: allow | log | simulate | drop | challenge | jschallenge | connection close |
| edgeWAF | FirewallMatchesSources |
Array of firewall source types (strings) that have performed actions on a request: asn | country | ip | ipRange | securityLevel | zoneLockdown | waf | firewallRules | uaBlock | rateLimit | bic | hot | l7ddos The same product appearing multiple times indicates different rules or actions activated. |
| edgeWAF | FirewallMatchesRuleIDs | Array of RuleIDs (strings) that matched the request |
| general | RayID | Unique request identifier, 64-bit binary ID |