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

demandé il y a 2 ans440 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 2 ans
AWS
EXPERT
vérifié il y a 2 ans
  • Oh, thanks for remind on using the Java DateTimeFormatter, let me update the CloudFormation and see the case can be resolved.

    Thanks Sean!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions