随笔 - 911  文章 - 5  评论 - 94  阅读 - 243万

Kibana Dev Tools应用

 

PUT iis_test #新建名为iis_test的索引
DELETE iis_test #删除名为iis_test的索引
GET iis_test/_mapping #查看名为iis_test的索引映射


POST iis_test/_doc #在名为iis_test的索引中插入一条数据
{
"EventTime":"2016-07-17T12:58:17.136+0800",
"c-ip":"191.168.3.35"
}

 

#重建索引(实际是新增一个索引出来)

POST _reindex
{
"source": {
"index": "iis_oa_2020-09"
},
"dest": {
"index": "iis_oa_1_2020-09"
}
}


GET _template/template_iis #查询名为template_iis的模板
DELETE _template/template_iis #删除名为template_iis的模板

#新建名为template_iis的模板
PUT _template/template_iis
{
"index_patterns" : [
"iis*"
],
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas":2,
"refresh_interval" : "5s"
}
},
"mappings" : {
"_doc" : {
"dynamic_templates" : [
{
"message_field" : {
"path_match" : "message",
"match_mapping_type" : "string",
"mapping" : {
"type" : "text",
"norms" : false
}
}
},
{
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "text",
"norms" : false,
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
],
"properties" : {
"@timestamp" : {
"type" : "date"
},
"@version" : {
"type" : "keyword"
},
"EventTime" : {
"type" : "date"
},
"c-ip" : {
"type" : "ip"
},
"s-ip" : {
"type" : "ip"
},
"geoip" : {
"dynamic" : true,
"properties" : {
"ip" : {
"type" : "ip"
},
"location" : {
"type" : "geo_point"
},
"latitude" : {
"type" : "half_float"
},
"longitude" : {
"type" : "half_float"
}
}
}
}
}
},
"aliases" : { }

}

posted on   momingliu11  阅读(395)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示