跳转至

索引关键字段修改



POST /api/v1/workspace/index_key_field/modify

概述

索引关键字段的修改

目前只支持日志类型。索引信息来自 日志-索引-列表 接口 索引字段信息可通过 dql 语句 SHOW_LOGGING_FIELD(index='xx') 查询

Body 请求参数

参数名 类型 必选 说明
cfgList array 待更新的关键字段信息列表
允许为空: False
cfgList[*] None
cfgList[*].uuid string Y 索引配置UUID, 目前只支持日志索引。对应日志索引列表接口响应中的uuid字段
例子: message
允许为空: False
cfgList[*].extendFields array Y 原始字段名
允许为空: False
允许为空字符串: True
cfgList[].extendFields[] None
cfgList[].extendFields[].tag string Y 原始字段名
例子: abc
允许为空: False
cfgList[].extendFields[].alias string 字段名别名
例子: 别名值
允许为空: False
允许为空字符串: True
syncKeywordSpeed boolean 是否同步关键词加速
例子: True
允许为空: False

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/workspace/index_key_field/modify' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-raw '{"syncKeywordSpeed":true,"cfgList":[{"uuid":"default","extendFields":[{"tag":"source"},{"tag":"service"},{"tag":"__source"}]}]}' \
  --insecure

响应

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "xxxxxx"
} 

文档评价

文档内容是否对您有帮助? ×