mongocli atlas accesslogs ls

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

Options

NameDescription
--authResult <authResult>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 <clusterName>Name of the cluster
--end <end>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
--hostname <hostname>The fully qualified domain name (FQDN) of the target node that should receive the authentication attempt
--ip <ip>IP address that attempted to authenticate with the database. Atlas filters the returned logs to include documents with only this IP address
--nLog <nLog>Maximum number of log lines to return
--output, -o <output>Output format. Valid values are json, json-path, go-template, or go-template-file
--projectId <projectId>Project ID to use. Overrides the settings in the configuration file or environment variable
--start <start>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