Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何查询从 Unix 时间戳到正常时间的 AWS WAF 日志时间戳?
您可以使用from_unixtime将 unix 纪元格式转换为时间戳格式。请参阅以下示例和输出:
from_unixtime
select from_unixtime(1594279112675/1000) 2020-07-09 07:18:32.000
在您的情况下,查询应如下:
select from_unixtime(timestamp/1000)
您可以通过以下语法将其转换为日期时间
select DATE(timestamp), ....