AWS Kinesis Firehose Delivery Stream到S3的年份错误地设置为2022。

0

【以下的问题经过翻译处理】 目前我正在使用AWS Kinesis Firehose Delivery Stream将Cloudwatch日志流式传输到S3中,并附加时间戳前缀,如下所示 /year=!{timestamp:YYYY}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/

然而,发现在2021年12月25日后,日志文件被错误地放置在了 /year=2022/month=12/day=26/hour=00这个位置。

有人现在遇到相同的问题吗?对于我们使用AWS Athena进行分区的时间戳来说,这似乎是一个严重的问题。

profile picture
EXPERT
asked 5 months ago28 views
1 Answer
0

【以下的回答经过翻译处理】 你好 Keith,

Amazon Kinesis Firehose Delivery Stream使用Java DateTimeFormatter。

Amazon Kinesis Firehose Delivery Stream:时间戳命名空间。

y表示时代年份 / Y表示基于周的年份。

请使用“year=!{timestamp:yyyy}”而不是“year=!{timestamp:YYYY}”。

谢谢!

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions