Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas deployments logs

On this page

  • Syntax
  • Options
  • Inherited Options

Get deployment logs.

Command Syntax
atlas deployments logs [options]
Name
Type
Required
Description

--deploymentName

string

false

Name of the deployment.

--end

int

false

UNIX Epoch-formatted ending date and time for the range of log messages to retrieve. This value defaults to the current timestamp.

--force

false

Flag that indicates whether to overwrite the destination file.

-h, --help

false

help for logs

--hostname

string

false

Name of the host that stores the log files that you want to download.

--name

string

false

Name of the log file (e.g. mongodb.gz|mongos.gz|mongosqld.gz|mongodb-audit-log.gz|mongos-audit-log.gz).

-o, --output

string

false

Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.

--projectId

string

false

Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.

--start

int

false

UNIX Epoch-formatted starting date and time for the range of log messages to retrieve. This value defaults to 24 hours prior to the current timestamp.

--type

string

false

Type of deployment. Valid values are ATLAS or LOCAL.

Name
Type
Required
Description

-P, --profile

string

false

Back

list