# Import archived logs

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fdata-query%2Farchive-query%2Fimport-archived-logs.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fdata-query%2Farchive-query%2Fimport-archived-logs.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

## Description[​](#description "Direct link to Description")

Coralogix allows you to import the data [you archived](https://coralogix.com/tutorials/archive-s3-bucket-forever/) in an easy and structured way. Simply use our proprietary Lambda function and have your archived logs back in your system in minutes.

To choose what to archive:

1. Go to your Coralogix archive bucket, data should be stored there per the day and hour of the log entries.

2. Choose the relevant hour to import and place it in a separate bucket.

3. Note - Imported logs count as part of your daily quota.

## Usage[​](#usage "Direct link to Usage")

Make sure you add the private\_key environment variable when using this lambda.

1. Create an "author from scratch" **Node.js 12.0** runtime lambda with an S3 read permissions 

[![configure lambda function](/assets/images/lambda_function_screen-c3d675deddd016f0aa315323d90a573e.webp)](https://docs-docusaurus.kinsta.page/assets/images/lambda_function_screen-c3d675deddd016f0aa315323d90a573e.webp)

2. At "Code entry type" choose "Upload a ZIP file" and upload "s3ToCoralogix.zip"

<https://s3-eu-west-1.amazonaws.com/coralogix-public/tools/s3ArchivedReader.zip>

3. Add the *private\_key* environment variable.

4. Choose the S3 bucket you want to get triggered by and change the event type from "PUT" to "Object Created(All)"

[![S3 bucket for coralogix](/assets/images/choosing-S3-bucket-1024x388-23df2dcc12cbe5ed5c9fbe6ec1d90fd8.webp)](https://docs-docusaurus.kinsta.page/assets/images/choosing-S3-bucket-1024x388-23df2dcc12cbe5ed5c9fbe6ec1d90fd8.webp)

5. Click **'Save'**

You're all set!
