Aws Athena混合结构的表架构记录json和空间分离

时间:2017-08-23 19:35:02

标签: hive amazon-athena

我正在尝试为混合结构日志创建aws Athena表模式。该日志包含空格分隔值,然后是JSON数据(键值)。可能吗?如果可能的话,请你告诉我应该使用哪个serde以及input.regex。样本数据如下

<14>1 2017-08-16T07:31:51.987129Z ip-10-xxx-xx-xx something-abc-abc-abc-access-nginx - - - { "time": "16/Aug/2017:07:31:51 +0000", "remote_addr": "xx.xx.xx.xxx", "remote_user": "-", "http_x_forwarded_for": "11.332.125.57", "body_bytes_sent": 478, "request_time": "0.023", "status": 200, "request": "GET /v1/abcd/ac4e427d223a369edf HTTP/1.1", "request_method": "GET", "http_referrer": "-", "http_header": "bltdfeb4fe089b00feb", "http_header_old": "-", "http_user_agent": "-" }

0 个答案:

没有答案