# Transferring data from an AWS CloudTrail source endpoint

Yandex Data Transfer enables you to upload audit logs the AWS CloudTrail database to Yandex Cloud managed databases and implement various data processing and transformation scenarios. To implement a transfer:

1. [Explore possible data transfer scenarios](#scenarios).
1. [Prepare the AWS CloudTrail database](#prepare) for the transfer.
1. [Set up a source endpoint](#endpoint-settings) in Yandex Data Transfer.
1. [Set up one of the supported data targets](#supported-targets).
1. [Create](../../transfer.md#create) a transfer and [start](../../transfer.md#activate) it.
1. In case of any issues, [use ready-made solutions](../../../troubleshooting/index.md) to resolve them.

## Scenarios for transferring data from AWS CloudTrail {#scenarios}

You can upload logs to various databases for further storage in the cloud, processing and loading into data marts for further visualization.

For a detailed description of possible Yandex Data Transfer scenarios, see [Tutorials](../../../tutorials/index.md).

## Preparing the AWS CloudTrail database {#prepare}

Get an AWS key ID and secret access key by following the [AWS guide](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html).

For more information, see [this Airbyte® guide](https://docs.airbyte.com/integrations/sources/aws-cloudtrail/).

## Configuring an AWS CloudTrail source endpoint {#endpoint-settings}

When [creating](../index.md#create) or [updating](../index.md#update) an endpoint, configure access to AWS. For more information, see [this Airbyte® guide](https://docs.airbyte.com/integrations/sources/aws-cloudtrail).

{% list tabs group=instructions %}

- Management console {#console}

    * **Key ID** and **Secret key**: Specify the [AWS key ID and contents](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html).
    * **Region name**: Enter the AWS [region](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-installing-specifying-region.html) name.
    * **Start date**: Specify the date in `YYYY-MM-DD` format. Log entries for this and future dates will be transferred to the target. If no value is specified, log entries are copied for the maximum period of 90 days.

{% endlist %}

## Configuring the data target {#supported-targets}

Configure one of the supported data targets:

* [MySQL®](../target/mysql.md)
* [MongoDB](../target/mongodb.md)
* [ClickHouse®](../target/clickhouse.md)
* [Greenplum®](../target/greenplum.md)
* [Yandex Managed Service for YDB](../target/yandex-database.md)
* [Apache Kafka®](../target/kafka.md)
* [YDS](../target/data-streams.md)
* [PostgreSQL](../target/postgresql.md)

For a complete list of supported sources and targets in Yandex Data Transfer, see [Available transfers](../../../transfer-matrix.md).

Make sure that the network hosting the target cluster is configured to allow connections from the internet. To enable internet access, [set up routing](../../../../vpc/tutorials/nat-instance/index.md).

After configuring the data source and target, [create and start the transfer](../../transfer.md#create).

_Airbyte® is a registered trademark of Airbyte, Inc in the United States and/or other countries._