Send 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 | dql query statement, if this value exists, then the namespace and conditions parameters will be ineffective 【Format Requirement】:L::* :(__docid , analysis_field){} |
|
namespace | string | full write of the namespace in the dql query statement, default value is logging Optional values: ['object', 'object_history', 'custom_object', 'logging', 'keyevent', 'unrecovered_event', 'tracing', 'rum', 'network', 'security', 'backup_log', 'profiling', 'billing'] |
|
highlight | boolean | whether to highlight the query string |
|
conditions | string | dql query filter conditions Example: source IN ['kube-controller'] Allow null: False Allow empty string: True |
|
timeRange | array | data time range, two elements, Example: [1573646935000, 1573646960000] Allow null: False |
|
analysisField | string | Y | Approximate text analysis-field Example: message Allow null: True |
Supplementary Parameter Explanation¶
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