aws-athena表模式json和空间分隔

bxgwgixi  于 2021-06-26  发布在  Hive
关注(0)|答案(0)|浏览(219)

我正在尝试为混合结构日志创建aws athena表模式。也就是说,日志包含空格分隔的值,然后是json数据(键值)。有可能吗?如果可能的话,你能建议我应该使用哪个serde和什么是input.regex。样本数据如下 <14>1 2017-08-16T07:31:51.987129Z ip-10--xx-xx something----access-nginx - - - { "time": "16/Aug/2017:07:31:51 +0000", "remote_addr": "xx.xx.xx.", "remote_user": "-", "http_x_forwarded_for": "11.332.125.57", "body_bytes_sent": 478, "request_time": "0.023", "status": 200, "request": "GET /v1/d/ac4e427d223a369edf HTTP/1.1", "request_method": "GET", "http_referrer": "-", "http_header": "bltdfeb4fe089b00feb", "http_header_old": "-", "http_user_agent": "-" }

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题