Skip to content

Commit

Permalink
Correct the parsing of timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Apr 12, 2024
1 parent 820835d commit 2b8f38f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CREATE MATERIALIZED VIEW {table_name}_mview AS
SELECT
owner_id AS `aws.s3.bucket_owner`,
bucket_name AS `aws.s3.bucket`,
to_timestamp(CONCAT(SUBSTRING(request_time, 2), ' ', SUBSTRING(request_time_zone, 1, LENGTH(request_time_zone) - 1)), 'dd/MMM/yyyy:HH:mm:ss Z') AS `@timestamp`,
CONCAT(request_time, ' ', request_time_zone) AS `aws.s3.request_time`,
remote_ip AS `aws.s3.remote_ip`,
requester AS `aws.s3.requester`,
Expand Down

0 comments on commit 2b8f38f

Please sign in to comment.