码迷,mamicode.com
首页 > 其他好文 > 详细

ELK练习

时间:2019-05-22 09:34:13      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:ext   code   mamicode   ignore   index   info   src   des   color   

1.ELK练习

技术图片

 

PUT s3/_doc/1
{
    "mappings" : {
      "doc" : {
        "properties" : {
          
          "name" : {
            "type" : "text",
            "index":false,
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          },
          
          "age" : {
            "index":false,
            "type" : "long"
          },
          
          "desc" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 128,
                "copy_to":["t1", "t2"]
              }
            }
          },
          
          "tags" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 128,
                "copy_to":["t1", "t2"]
              }
            }
          },
          
          
          "info" : {
            "properties":{
              "addr":{
                "type":"text"
              },
             "tel":{
                "type":"long"
              }
            }
          },
          

          "sex" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          }
        }
      }
    },
    "settings": {
    "number_of_shards": 3,
    "number_of_replicas": 3
  }
}


GET s3/_doc/1

 

ELK练习

标签:ext   code   mamicode   ignore   index   info   src   des   color   

原文地址:https://www.cnblogs.com/studybrother/p/10903823.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!