AWS Certified Solutions Architect - Associate (SAA-C02)

Sign Up Free or Log In to participate!

Cannot export log stream from cloudwatch to S3 with local time

I want to export log from cloudwatch to s3 and when i download log file and open it the value of timestamp field is not local time. It seems to become UTC time.

Is there any way to configure it?

2 Answers

Công nghệ Blockchain được xem là một trong những sản phẩm đặc trưng của làn sóng cách mạng công nghiệp 4.0. Với khả năng chia sẻ thông tin dữ liệu minh bạch theo thời gian thực, tiết kiệm không gian lưu trữ và bảo mật cao, công nghệ blockchain (chuỗi khối) là một trong những xu hướng công nghệ đột phá, có khả năng ứng dụng rộng rãi ở nhiều ngành nghề và lĩnh vực, bao gồm cả nền kinh tế phi tập trung với sự ra đời của tiền điện tử mà nổi bật là Bitcoin.

Xem thêm tại website: https://blocksolfi.io/

I don’t think that is possible. Almost every major public cloud provider, AWS included, uses UTC as the one-and-only time zone for their systems, especially logging.

What you see on AWS Console is a converted timestamp. In the backend, they’re all UTC.

However, since the timestamp string is a known standard (ISO 8601), it can be parsed by lots of well-known languages. For example if you have something like this:

2021-12-08T17:59:03.889Z  

If can easily be converted to whatever time zone you want, depends on the programming language used. For example: dateutil of Python, or the built-in Date-Time object constructor of .NET, etc.

Luong Nguyen

Thank you for answering my question. I’m so glad when got help from a Vietnamese people!

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?