【Logmine Query】Send Logmine Query Task¶
POST /api/v1/logmine/send_task
Overview¶
Send a log clustering query task
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
query | string | No | DQL query statement, if this value exists, then the namespace and conditions parameters will be invalid. 【Format Requirement】:L::* :(__docid , analysis_field){} |
namespace | string | No | Full namespace in the DQL query statement, default value is logging Possible values: ['object', 'object_history', 'custom_object', 'logging', 'keyevent', 'unrecovered_event', 'tracing', 'rum', 'network', 'security', 'backup_log', 'profiling', 'billing'] |
highlight | boolean | No | Whether to highlight the query string |
conditions | string | No | DQL query filter conditions Example: source IN ['kube-controller'] Can be empty: False Can be an empty string: True |
timeRange | array | No | Data time range, two elements, Example: [1573646935000, 1573646960000] Can be empty: False |
analysisField | string | Yes | Approximate text analysis field Example: message Can be empty: True |
Additional Parameter Notes¶
Request Example¶
curl 'https://openapi.guance.com/api/v1/logmine/send_task' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"namespace":"logging","conditions":"index in [`default`]","highlight":true,"timeRange":[1683534635416,1683535535416],"analysisField":"message"}' \
--compressed