Docs Menu

mongocli atlas accessLogs list

On this page

  • Syntax
  • Options
  • Inherited Options

Retrieve the access logs of a cluster identified by the cluster's name or hostname.

mongocli atlas accessLogs list [options]
Name
Type
Required
Description
--authResult
string
false
Flag that indicates whether to return either successful or failed authentication attempts. When set to success, Atlas filters the log to return only successful authentication attempts. When set to fail, Atlas filters the log to return only failed authentication attempts.
--clusterName
string
false
Name of the cluster.
--end
string
false
Timestamp in the number of milliseconds that have elapsed since the UNIX epoch for the first entry that Atlas returns from the database access logs.
-h, --help
false
help for list
--hostname
string
false
The fully qualified domain name of the target node that received the authentication attempt.
--ip
string
false
Single IP address that attempted to authenticate with the database. Atlas filters the returned logs to include documents with only this IP address.
--nLog
int
false
Maximum number of log lines to return.
-o, --output
string
false
Output format. Valid values: json|json-path|go-template|go-template-file
--projectId
string
false
Project ID to use. Overrides configuration file or environment variable settings.
--start
string
false
Timestamp in the number of milliseconds that have elapsed since the UNIX epoch for the first entry that Atlas returns from the database access logs.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
Give Feedback
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.