---
title: Import archived logs
description: Import archived logs from your Coralogix S3 archive bucket back into your account with an AWS Lambda function triggered by S3 uploads.
url: https://coralogix.com/docs/user-guides/data-query/archive-query/import-archived-logs/
product: dataengine
feature: DataPrime Queries
feature_id: dataengine-dataprime-queries
feature_identifier: dataengine/dataengine-dataprime-queries
last_updated: '2026-11-02'
---

# Import archived logs

## 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

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](/docs/assets/images/lambda_function_screen-c3d675deddd016f0aa315323d90a573e.webp)](https://coralogix.com/docs/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](/docs/assets/images/choosing-S3-bucket-1024x388-23df2dcc12cbe5ed5c9fbe6ec1d90fd8.webp)](https://coralogix.com/docs/assets/images/choosing-S3-bucket-1024x388-23df2dcc12cbe5ed5c9fbe6ec1d90fd8.webp)

5. Click **'Save'**

You're all set!
