v1
latestOpenAPI 3.0.02026-07-1410578280.2 KBGet service logs
Get stdout and stderr logs from a service.
Note: This endpoint works only for services with the json-file or journald logging drivers.
Path parameters
ID or name of the service
Query parameters
Show service context and extra details provided to logs.
Return the logs as a stream.
This will return a 101 HTTP response with a Connection: upgrade header, then hijack the HTTP connection to send raw output. For more information about hijacking and the stream format, see the documentation for the attach endpoint.
Return logs from stdout
Return logs from stderr
Only return logs since this time, as a UNIX timestamp
Add timestamps to every log line
Only return this number of log lines from the end of the logs. Specify as an integer or all to output all log lines.
Response
logs returned as a string in response body