Skip to content

使用KQL语法查询报错 #60

@zhxgigi

Description

@zhxgigi

Describe the bug

使用KQL语法查询报错,使用Lucene语法没问题。

CKibana info

Please include the following information about your environment:

CKibana version: 1.0.4
ClickHouse version: i.e. na
Kibana: 7.17.4, Elastcisearch: 7.17.4

Steps to reproduce

Kibana开启KQL查询功能
image

image

请求:
{ "batch": [ { "request": { "params": { "index": "xxxxxxxxx", "body": { "sort": [ { "ts": { "order": "desc", "unmapped_type": "boolean" } } ], "fields": [ { "field": "*", "include_unmapped": "true" }, { "field": "collect_ts", "format": "strict_date_optional_time" }, { "field": "ts", "format": "strict_date_optional_time" }, { "field": "ts_min", "format": "strict_date_optional_time" } ], "size": 800, "version": true, "script_fields": {}, "stored_fields": [ "*" ], "runtime_mappings": {}, "_source": false, "query": { "bool": { "must": [], "filter": [ { "bool": { "should": [ { "match": { "src_ip": "8.8.8.8" } } ], "minimum_should_match": 1 } }, { "range": { "ts": { "format": "strict_date_optional_time", "gte": "2024-08-08T07:14:29.534Z", "lte": "2024-08-08T07:29:29.534Z" } } } ], "should": [], "must_not": [] } }, "highlight": { "pre_tags": [ "@kibana-highlighted-field@" ], "post_tags": [ "@/kibana-highlighted-field@" ], "fields": { "*": {} }, "fragment_size": 2147483647 } }, "track_total_hits": false, "preference": 1723081433520 } }, "options": { "sessionId": "198f200d-f1e2-4150-a6c2-f1ea13ff7d26", "isRestore": false, "strategy": "ese", "isStored": false, "executionContext": { "type": "application", "name": "discover", "description": "fetch documents", "url": "/app/discover", "id": "" } } }, { "request": { "params": { "index": "xxxxxxxxx", "body": { "size": 0, "aggs": { "2": { "date_histogram": { "field": "ts", "fixed_interval": "30s", "time_zone": "Asia/Shanghai", "min_doc_count": 1 } } }, "script_fields": {}, "stored_fields": [ "*" ], "runtime_mappings": {}, "query": { "bool": { "must": [], "filter": [ { "bool": { "should": [ { "match": { "src_ip": "8.8.8.8" } } ], "minimum_should_match": 1 } }, { "range": { "ts": { "format": "strict_date_optional_time", "gte": "2024-08-08T07:14:29.534Z", "lte": "2024-08-08T07:29:29.534Z" } } } ], "should": [], "must_not": [] } } }, "track_total_hits": true, "preference": 1723081433520 } }, "options": { "sessionId": "198f200d-f1e2-4150-a6c2-f1ea13ff7d26", "isRestore": false, "strategy": "ese", "isStored": false, "executionContext": { "type": "application", "name": "discover", "description": "fetch chart data and total hits", "url": "/app/discover", "id": "" } } } ] }
ckibana后台报错日志:
B1746800-F27A-47CD-B926-BC35F7AD3481

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions