Download specific job log

Description

Download a specific log file.

Definition

http://localhost:8080/engine/v2/logs/<jobId>/<filename>
jobId:The identifier of the job of interest.
filename:The name of the specific log file to download. filename is assumed to have a default extension of ‘.log’, the API will first try to find a file exactly matching filename failing that it will look for the file filename.log. Hence autodetect and autodetect.log are equivalent.

Method

GET

Returns

The requested debug log for the job of interest.

Errors

See the Error Codes documentation for the full list of errors that may be returned by the API.

Examples

Get the autodetect log file for job abc01:

http://localhost:8080/engine/v2/logs/abc01/autodetect.log

Or equivalently without the file extension

http://localhost:8080/engine/v2/logs/abc01/autodetect

NOTES

If you visit this URL in a web browser, the requested log file will be displayed. The logging system is configured to roll log files once they reach a certain size. If this has occurred only the most recent log file will be returned.