

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 教程：使用适用于 Windows 的 Kinesis 代理将 JSON 日志文件流式传输到 Amazon S3
<a name="directory-source-to-s3-tutorial"></a>

本教程介绍了使用 Amazon Kinesis Agent Microsoft Windows (Kinesis 代理) 设置数据管道的详细步骤。

本教程包括以下步骤：
+ 使用 Windows 版本代理将 JSON Kinesis 式的日志文件流式传输到[Amazon Simple Storage Service (Amazon S3)](https://docs.aws.amazon.com/AmazonS3/latest/gsg/)通过[Amazon Kinesis Data Firehose](https://docs.aws.amazon.com/firehose/latest/dev/)。有关适用于 Windows 的 Kinesis 代理的信息，请参阅[什么是 Amazon Kinesis Analytics？](what-is-kinesis-agent-windows.md)。
+ 在流式传输之前，使用对象修饰增强日志数据。有关更多信息，请参阅 [配置接收器修饰](sink-object-declarations.md#configuring-kinesis-agent-windows-decoration-configuration)。
+ 使用[Amazon Athena](https://docs.aws.amazon.com/athena/latest/ug/)搜索特定类型的日志记录。

**Prerequisites**  
如果您还没有 AWS 账户，请按照[设置 AWS 账户](getting-started.md#getting-started-setting-up)来获得一个。

**Topics**
+ [步骤 1: 配置 AWS 服务](kaw-ds2s3-tutorial-step1.md)
+ [步骤 2: 安装、配置和运行适用于 Windows 的运行代理](kaw-ds2s3-tutorial-step2.md)
+ [步骤 3: 在 Amazon S3 中查询日志数据](kaw-ds2s3-tutorial-step3.md)
+ [后续步骤](#kaw-ds2s3-tutorial-step4-next)

## 后续步骤
<a name="kaw-ds2s3-tutorial-step4-next"></a>

使用 AWS 管理控制台清除本教程中创建的资源：

1. 终止 EC2 实例（参阅 [Amazon EC2 Windows 实例入门](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/EC2_GetStarted.html#ec2-connect-to-instance-windows)中的步骤 3）。
**重要**  
如果您启动的实例不在[AWS 免费套餐](https://aws.amazon.com/free/)，则您需要为实例支付相关费用，直到您终止该实例。

1. 删除 Kinesis Data Firehose 传输流。

   1. 打开 Kinesis Data Firehose 控制台，网址为[https://console.aws.amazon.com/firehose/](https://console.aws.amazon.com/firehose/)。

   1. 选择您创建的传输流。

   1. 选择 **Delete**。

   1. 选择 **Delete delivery stream (删除传输流)**。

1. 删除 S3 存储桶。有关说明，请参阅[如何删除 S3 存储桶？](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/delete-bucket.html)中的*Amazon Simple Storage Service 控制台用户指南*。

有关更多信息，请参阅以下主题：
+ [为微软 Windows 配置 Amazon Kinesis 运行代理](configuring-kinesis-agent-windows.md)
+ [什么是 Amazon Kinesis Data Firehose？](https://docs.aws.amazon.com/firehose/latest/dev/what-is-this-service.html)
+ [什么是 Amazon S3？](https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html)
+ [什么是 Amazon Athena？](https://docs.aws.amazon.com/athena/latest/ug/what-is.html)