dcos task log

Displaying the task log

Description

The dcos task log command displays the task log.

Usage

  1. dcos task log [--all | --completed] [--follow --lines=N] [<task>] [<file>]

Options

NameDefaultDescription
—allDisplays all information recorded for tasks.
—completedDisplays completed and in-progress tasks.
—followDynamically update the log.
—lines=N10Displays the last N lines.

Positional arguments

NameDefaultDescription
<task>A full task ID, a partial task ID, or a regular expression.
<file>stdoutSpecify the sandbox file to print. The default is stdout.

The log file parameters should be paths relative to the Mesos sandbox. For example:

  1. dcos task log [mesosID] /mnt/mesos/sandbox/exporter.log

will return an error message. Instead, use this format:

  1. dcos task log [mesosID] exporter.log

Examples

For an example, see the logging documentation.

Parent command

CommandDescription
dcos taskManage DC/OS tasks.