Download Query Logs
You can download logs of your federated database instance queries from the Atlas user interface. You can view the logs to determine information such as:
The number and type of executed queries.
The number of scanned documents.
The log is in JSON format and available as a
.gz file. Atlas Data Federation
retains the logs for up to 30 days. By default, the logs are generated
in UTC format. You can modify the time zone in the User
Preferences page to generate and download the logs in your time zone.
You can generate logs for:
The last four, eight, twelve, or twenty-four hours.
A specific date and time period.
To download Atlas Data Federation query logs, you must have the
Project Data Access Read Only or higher role.
Download Query Logs from the UI
To download query logs:
Download Query Logs Through the API
To download query logs using the API, send a
GET request to the
queryLogs.gz endpoint. To learn more about the API syntax
and options, see Download Query Logs for One Federated