Year wrongly set to 2022 for AWS Kinesis Firehose Delivery Stream to S3

0

AWS Region: ap-southeast-1

Currently I am using the AWS Kinesis Firehose Delivery Stream to Stream the Cloudwatch Logs to S3 with the Prefix appending Timestamp, like this /year=!{timestamp:YYYY}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/

However, found that after 25 Dec 2021, the Log File to S3 was wrongly put the Object to e.g. /year=2022/month=12/day=26/hour=00 now.

Anyone has the same issue now, looks critical issue for us as we use this timestamp for Partitioning on AWS Athena

已提问 2 年前439 查看次数
1 回答
0
已接受的回答

Hello Keith,

The Amazon Kinesis Firehose Delivery Stream uses Java DateTimeFormatter.

Amazon Kinesis Firehose Delivery Stream: The timestamp namespace

y means year-of-era / Y means Week-based-year

Please use "year=!{timestamp:yyyy}" instead of "year=!{timestamp:YYYY}".

Thank you

AWS
Sean_P
已回答 2 年前
AWS
专家
已审核 2 年前
  • Oh, thanks for remind on using the Java DateTimeFormatter, let me update the CloudFormation and see the case can be resolved.

    Thanks Sean!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则