logs
Creates, updates, deletes, gets or lists a logs resource.
Overview
| Name | logs |
| Type | Resource |
| Id | cloudflare.r2.logs |
Fields
The following fields are returned by SELECT queries:
- list
Job logs
| Name | Datatype | Description |
|---|---|---|
createdAt | string | |
job | string | |
logType | string | (migrationStart, migrationComplete, migrationAbort, migrationError, migrationPause, migrationResume, migrationErrorFailedContinuation, importErrorRetryExhaustion, importSkippedStorageClass, importSkippedOversized, importSkippedEmptyObject, importSkippedUnsupportedContentType, importSkippedExcludedContentType, importSkippedInvalidMedia, importSkippedRequiresRetrieval) |
message | string | |
objectKey | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, job_id | limit, offset | Gets log entries for an R2 Super Slurper migration job, showing migration status changes, errors, etc. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
job_id | string | The job ID. |
limit | integer | |
offset | integer |
SELECT examples
- list
Gets log entries for an R2 Super Slurper migration job, showing migration status changes, errors, etc.
SELECT
createdAt,
job,
logType,
message,
objectKey
FROM cloudflare.r2.logs
WHERE account_id = '{{ account_id }}' -- required
AND job_id = '{{ job_id }}' -- required
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
;