Windows 事件日志的 Amazon CloudWatch Logs 集成的时间戳问题

Timestamp issue with Amazon CloudWatch Logs integration for Windows event logs

我刚刚配置了我的 Windows 框以将其 事件日志 (系统、安全、应用程序)发送到 Cloudwatch Logs (https://blogs.aws.amazon.com/application-management/post/Tx1KG4IKXZ94QFK/Using-CloudWatch-Logs-with-Amazon-EC2-Running-Microsoft-Windows-Server)。 CloudWatch Logs 收到事件日志,但它们没有 timestamp!

IIS日志,Custom日志等好像可以只设置时间戳,但是Event日志的"datetime_format"参数是不能设置的(配置文件:AWS.EC2.Windows.CloudWatch.json ), 正确的?!! http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-configuration-cwl.html

如果是对的,那就奇怪了!!日志记录没有时间戳怎么办?!!

谢谢,

如果您从 AWS 管理控制台查看日志,您应该能够通过单击右上角的 "gear icon" 查看事件时间戳 shows/hides table 列。

如果您从 AWS CLI 或 AWS SDK 与日志数据进行交互,则每个日志事件记录都应带有 a timestamp attribute