CREATEEXTERNALTABLEcloudtrail_seoul(eventVersionSTRING,userIdentitySTRUCT<type:STRING,principalId:STRING,arn:STRING,accountId:STRING,invokedBy:STRING,accessKeyId:STRING,userName:STRING,sessionContext:STRUCT<attributes:STRUCT<mfaAuthenticated:STRING,creationDate:STRING>,sessionIssuer:STRUCT<type:STRING,principalId:STRING,arn:STRING,accountId:STRING,username:STRING>,ec2RoleDelivery:STRING,webIdFederationData:MAP<STRING,STRING>>>,eventTimeSTRING,eventSourceSTRING,eventNameSTRING,awsRegionSTRING,sourceIpAddressSTRING,userAgentSTRING,errorCodeSTRING,errorMessageSTRING,requestParametersSTRING,responseElementsSTRING,additionalEventDataSTRING,requestIdSTRING,eventIdSTRING,resourcesARRAY<STRUCT<arn:STRING,accountId:STRING,type:STRING>>,eventTypeSTRING,apiVersionSTRING,readOnlySTRING,recipientAccountIdSTRING,serviceEventDetailsSTRING,sharedEventIDSTRING,vpcEndpointIdSTRING,tlsDetailsSTRUCT<tlsVersion:STRING,cipherSuite:STRING,clientProvidedHostHeader:STRING>)COMMENT'CloudTrail table for worldskills-log-centralized bucket'PARTITIONEDBY(`timestamp`string)ROWFORMATSERDE'org.apache.hive.hcatalog.data.JsonSerDe'STOREDASINPUTFORMAT'com.amazon.emr.cloudtrail.CloudTrailInputFormat'OUTPUTFORMAT'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'LOCATION's3://worldskills-log-centralized/cloudtrail/AWSLogs/073813292468/CloudTrail/ap-northeast-2'TBLPROPERTIES('projection.enabled'='true','projection.timestamp.format'='yyyy/MM/dd','projection.timestamp.interval'='1','projection.timestamp.interval.unit'='DAYS','projection.timestamp.range'='2024/01/01,NOW','projection.timestamp.type'='date','storage.location.template'='s3://worldskills-log-centralized/cloudtrail/AWSLogs/073813292468/CloudTrail/ap-northeast-2/${timestamp}');