Get service logs
Changed onGet stdout and stderr logs from a service. See also /containers/{id}/logs.
Note: This endpoint works only for services with the local, json-file or journald logging drivers.
Request
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Path parameters
ID or name of the service
Query parameters
Show service context and extra details provided to logs.
Keep connection after returning logs.
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 stream in response body
Changes
- breaking
removed the media type
application/octet-streamfor the response with the status - info
api tag
Serviceadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
for the
queryrequest parameterdetails, default valuefalsewas removed - breaking
for the
queryrequest parameterfollow, default valuefalsewas removed - breaking
for the
queryrequest parametersince, default value0was removed - breaking
for the
queryrequest parameterstderr, default valuefalsewas removed - breaking
for the
queryrequest parameterstdout, default valuefalsewas removed - breaking
for the
queryrequest parametertail, default valueallwas removed - breaking
for the
queryrequest parametertimestamps, default valuefalsewas removed - breaking
for the
queryrequest parametersince, the format changed from no format toint32 - breaking
removed the media type
application/vnd.docker.multiplexed-streamfor the response with the status - breaking
removed the media type
application/vnd.docker.raw-streamfor the response with the status - info
api tag
Serviceremoved - info
added the media type
application/octet-streamfor the response with the status - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- breaking