dcos service log

Displaying the service logs

Description

The dcos service log command displays the service logs.

Important: To view the native DC/OS Marathon logs by using the dcos service log marathon command, you must be on the same network or connected by VPN to your cluster. For more information, see Accessing native DC/OS Marathon logs.

Usage

dcos service log <file> <service> [OPTION]

Options

Name, shorthand Default Description
--follow Dynamically update the log.
--lines=N 10 Displays the last N lines.
--ssh-config-file=<path> The path to the SSH config file. This is used to access the Marathon logs.

Positional arguments

Name, shorthand Description
<file> The service log filename for the Mesos sandbox. The default is stdout.
<service> The DC/OS service name.

Parent command

Command Description
dcos service Manage DC/OS services.