简体   繁体   English

AWS CloudWatch Logs Archive(不是 S3),如何使用它

[英]AWS CloudWatch Logs Archive (not S3), how to use it

I am reading AWS CloudWatch Logs documentation here .我在这里阅读 AWS CloudWatch Logs 文档。 They says他们说

Archive log data – You can use CloudWatch Logs to store your log data in highly durable storage.归档日志数据 – 您可以使用 CloudWatch Logs 将日志数据存储在高度持久的存储中。 The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. CloudWatch Logs 代理可以轻松快速地将旋转和非旋转的日志数据从主机发送到日志服务。 You can then access the raw log data when you need it.然后,您可以在需要时访问原始日志数据。

And in the pricing page , they have定价页面,他们有

Store (Archival) $0.03 per GB存储(存档)每 GB 0.03 USD

And in the Pricing Calculator , they mention定价计算器中,他们提到

Log Storage/Archival (Standard and Vended Logs) Log volume archived is estimated to be 15% of Log volume ingested (due to compression).日志存储/归档(标准和出售的日志) 归档的日志量估计为摄取的日志量的 15%(由于压缩)。 Storage/Archival costs are estimated assuming customer choses a retention period of one (1) month.假设客户选择一 (1) 个月的保留期,估计存储/存档成本。 Default retention setting is 'never expire'.默认保留设置为“永不过期”。

Problem问题

I am trying to understand the behavior of this archive feature to decide if I need to move my log data to S3.我正在尝试了解此存档功能的行为,以决定是否需要将日志数据移动到 S3。 but I cannot find any further details.但我找不到任何进一步的细节。 I have tried exploring every button and link in CloudWatch Logs pages but cannot find a way to archive the data, I can only delete them or edit their retention rules.我尝试探索 CloudWatch Logs 页面中的每个按钮和链接,但找不到存档数据的方法,我只能删除它们或编辑它们的保留规则。

So how does it work?那么它是怎样工作的? The remark in the Pricing Calculator says it is estimated to be 15% of ingested volume, does this mean it always archive 15% of the log automatically?定价计算器中的注释说它估计是摄取量的 15%,这是否意味着它总是自动归档 15% 的日志? And why do they have to assume in the calculation taht the retention period is set to 1 month, does the archive feature behave differently otherwise?为什么他们必须在计算中假设保留期设置为 1 个月,否则存档功能的行为是否有所不同?

The Archive log data feature refers to storing log data in CloudWatch Logs.存档日志数据功能是指将日志数据存储在 CloudWatch Logs 中。 You do not need to do anything additional to 'archive'.除了“存档”之外,您无需执行任何其他操作。 It is the regular storage you can see on console.这是您可以在控制台上看到的常规存储。

Considering only storage pricing, storing logs in S3 is cheaper.仅考虑存储定价,将日志存储在 S3 中更便宜。 It varies depending on region but in average on S3 Standard is about $0.025 per GB vs $0.03 per GB on CloudWatch Logs Storage.它因地区而异,但 S3 Standard 的平均价格约为每 GB 0.025 美元,而 CloudWatch Logs 存储的平均价格为每 GB 0.03 美元。 And if you move the objects to other storage classes it becomes cheaper.如果您将对象移动到其他存储类,它会变得更便宜。

About:关于:

Log volume archived is estimated to be 15% of Log volume ingested (due to compression)归档的日志量估计为摄取的日志量的 15%(由于压缩)

It refers to if 100GB of data are ingested on CloudWatch Logs, it reflects as only 15GB (15%) on Storage due to the special compressed format in which they stored this logs.它指的是如果在 CloudWatch Logs 上摄取 100GB 的数据,由于它们存储此日志的特殊压缩格式,它在存储上反映为只有 15GB (15%)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Cloudformation 如何将日志从 CloudWatch Logs 发送到 S3 - AWS Cloudformation How to send logs from CloudWatch Logs to S3 AWS:将日志从 Cloudwatch 导出到 Amazon S3 的权限 - AWS: Permissions for exporting logs from Cloudwatch to Amazon S3 如何在没有 CloudWatch 的情况下将日志从 AWS Lambda 导出到 S3 存储桶? - How export logs from AWS Lambda to S3 bucket without CloudWatch? 如何将 --profile 选项与 CloudWatch Logs 代理的“aws logs”命令一起使用? - How to use the --profile option with "aws logs" command for the CloudWatch Logs Agent? 如何将日志从 Amazon S3 存储桶导入到 cloudwatch - How to Import Logs From An Amazon S3 Bucket to cloudwatch 如何将Ec2日志发送到S3,然后使用Cloudwatch对其进行监视 - How to send Ec2 logs to S3 and then monitoring it using Cloudwatch 适用于S3的AWS Cloudwatch监控 - AWS Cloudwatch monitoring for S3 用于连接 AWS Cloudwatch 日志、Kinesis Firehose、S3 和 ElasticSearch 的 AWS IAM 策略 - AWS IAM Policies to connect AWS Cloudwatch Logs, Kinesis Firehose, S3 and ElasticSearch 如何在AWS CloudWatch中轮换日志? - How to rotate logs in AWS CloudWatch? 将 DynamoDb 指标日志导出到 S3 或 CloudWatch - Export DynamoDb metrics logs to S3 or CloudWatch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM