scrapy_cloud_get_job_log
Read the log of a Scrapy Cloud job. By default returns the last 'count' entries. Pass level='ERROR' to get only errors, 'contains' to search messages for a text (both scan from the start of the log), or 'offset' to page from the start. Entries have time (ms), level and message. Output passes through the conversation, so beyond a small sample use the shub CLI (shub log) instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Job key in project/spider/job form, for example 123/1/4. | |
| tail | No | Return the last entries of the log instead of the first. Ignored when 'offset', 'level' or 'contains' is given. | |
| count | No | Maximum number of log entries to return. | |
| level | No | Only entries at this level or above. | |
| offset | No | Number of entries to skip from the start of the log. | |
| contains | No | Only entries whose message contains this text, filtered server-side. |