Archive logs
You can archive logs to an AWS S3 bucket or Azure Blob Storage. Archiving gives you the option to restore logs and query them after they have expired from your time-based account.
You can use the following endpoints to retrieve, set up, test, and update an account's archive settings.
Note: Logs are archived before they are indexed and analyzed by Logz.io. If you are using drop filters, note that dropped logs will still be archived.
Retrieve archiving settings
Gets the current archive settings for a time-based log account.
Set up archiving
Configure archiving for a time-based log account. One archive can be configured per account (or sub account). For more on this, see [AWS Access with IAM](https://docs.logz.io/user-guide/give-aws-access-with-iam-roles/) and [Archiving](https://docs.logz.io/user-guide/archive-and-restore/configure-archiving.html).
Test archive settings
Tests the settings and returns the status code to confirm that a connection with the provider was established.
Retrieve archive settings
Retrieves an archiving settings by the ID of the settings.
Update archive settings
Updates the archiving settings for a time-based log account. (The API token identifies the account.) Please ensure to change the region in the URL to match your account's region.
Delete archive settings
Deletes the archiving settings for a time-based log account.