Closed liaosy21 closed 2 years ago
你的原始查询长什么样, 时间参数传的不对哈,8 月没有 0 号
@hebo1982
感觉是 date_range_precision_tuning 截取出问题了。
进入discover默认会打开前15m的查询:
抓到的kibana的请求
POST的 payload
{"params":{"ignoreThrottled":true,"preference":1660563709344,"index":"app_ex_log-*","body":{"version":true,"size":500,"sort":[{"createTime":{"order":"desc","unmapped_type":"boolean"}}],"aggs":{"2":{"date_histogram":{"field":"createTime","fixed_interval":"30s","time_zone":"Asia/Shanghai","min_doc_count":1}}},"stored_fields":["*"],"script_fields":{},"docvalue_fields":[{"field":"createTime","format":"date_time"}],"_source":{"excludes":[]},"query":{"bool":{"must":[],"filter":[{"match_all":{}},{"range":{"createTime":{"gte":"2022-08-15T11:26:51.953Z","lte":"2022-08-15T11:41:51.953Z","format":"strict_date_optional_time"}}}],"should":[],"must_not":[]}},"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"*":{}},"fragment_size":2147483647}},"rest_total_hits_as_int":true,"ignore_unavailable":true,"ignore_throttled":true,"timeout":"30000ms"},"serverStrategy":"es"}
嗯, 是一个 bug, 在处理字段的时候, 如果这个字段带 T 就会触发这个问题,已解决.
可以了
gateway: 1.6.0_SNAPSHOT es: 7.8.1 kibana: 7.8.1
尝试测试 date_range_precision_tuning,time_precision:6,预设置精度到“秒”,配置之后kibana请求报错了。 去掉改配置后正常。
抓包结果内容: kibana_http_400.json.zip
Issue reporter:hebo1982