全部产品
Search
文档中心

日志服务:GetStoreViewIndex - 查询指定数据集索引配置

更新时间:Sep 25, 2024

根据指定名称查询数据集索引,只支持 logstore 类型的数据集。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /storeviews/{name}/index HTTP/1.1

请求参数

名称类型必填描述示例值
projectstring

日志项目名称。

example-project
namestring

数据集名称。

my_storeview

返回参数

名称类型描述示例值
object

数据集中所有 LogStore 索引配置。

indexesarray<object>

索引配置列表。

object

索引配置。

projectstring

LogStore 所属日志项目名称。

example-project
logstorestring

LogStore 名称。

my-logstore
indexindex

LogStore 索引配置。

示例

正常返回示例

JSON格式

{
  "indexes": [
    {
      "project": "example-project",
      "logstore": "my-logstore",
      "index": {
        "max_text_len": 2048,
        "log_reduce_white_list": [
          "name"
        ],
        "log_reduce_black_list": [
          "time"
        ],
        "line": {
          "chn": false,
          "caseSensitive": true,
          "token": [
            ","
          ],
          "include_keys": [
            "includeField"
          ],
          "exclude_keys": [
            "excludeField"
          ]
        },
        "keys": {
          "key": {
            "chn": true,
            "caseSensitive": true,
            "token": [
              "|"
            ],
            "alias": "myAlias",
            "type": "text",
            "doc_value": true,
            "index_all": true,
            "max_depth": 0,
            "json_keys": {
              "key": {
                "chn": true,
                "caseSensitive": true,
                "token": [
                  "|"
                ],
                "alias": "myAlias",
                "type": "text",
                "doc_value": true
              }
            }
          }
        },
        "log_reduce": true
      }
    }
  ]
}

错误码

访问错误中心查看更多错误码。