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" : { }
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?