Skip to main content
This command is used to retrieve container logs from your own Disaster Log Archive.
❗️ You must have enabled log archiving for your Dedicated Stack(s) in order to use this command.

Synopsis

📘 You can find resource ID’s by looking at the URL of a resource on the Aptible Dashboard, or by using the JSON output format for the aptible db:list or aptible apps commands.
This command also allows retrieval of logs from deleted resources. Please contact Aptible Support for assistance identifying the proper resource IDs of deleted resources.

Examples

Search for all archived logs for a specific Database

By default, no logs are downloaded. Matching file names are printed on the screen.

Search for archived logs for a specific Database within a specific date range

You can specify a date range in UTC to limit the search to logs emitted during a time period.

Download logs from a specific App to a local path

Once you have identified the files you wish to download, add the --download-location parameter to download the files to your local system.
❗️ Warning: Since container logs may include PHI or sensitive credentials, please choose the download location carefully.

Search for logs from a specific Container

You can search for logs for a specific container if you know the container ID.