es 模板
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 | { "template" : "log*" , "order" :10, "settings" : { "index" :{ "refresh_interval" : "30s" , "number_of_shards" : "6" , "number_of_replicas" : "1" , "translog.flush_threshold_size" : "1024mb" , "translog.durability" : "async" } }, "mappings" :{ "logs" :{ "properties" : { "Date" : { "type" : "date" }, "Level" : { "type" : "keyword" }, "Class" : { "type" : "keyword" } } } } } |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | { "template" : "live*" , "order" :0, "settings" : { "index" :{ "refresh_interval" : "30s" , "number_of_shards" : "6" , "number_of_replicas" : "1" , "translog.flush_threshold_size" : "1024mb" , "translog.durability" : "async" } }, "mappings" :{ "logs" :{ "properties" : { "@timestamp" : { "type" : "date" }, "Date" : { "type" : "text" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } }, "Level" : { "type" : "keyword" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } }, "Thread" : { "type" : "text" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } }, "RequestId" : { "type" : "text" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } }, "Class" : { "type" : "keyword" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } }, "msg" : { "type" : "text" , "fields" : { "keyword" : { "type" : "keyword" , "ignore_above" : 256 } } } } } } } |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 修改版本 { "order" : 9, "template" : "live*" , "settings" : { "index" : { "refresh_interval" : "30s" , "number_of_shards" : "6" , "translog" : { "flush_threshold_size" : "1024mb" , "durability" : "async" }, "number_of_replicas" : "1" } }, "mappings" : { "live-front" : {-----------》这里的值不是随便写的。这里写成你的 type 的值 "properties" : { "@timestamp" : { "type" : "date" }, "Class" : { "type" : "text" }, "Date" : { "type" : "date" , "format" : "yyyy-MM-dd HH:mm:ss.SSS" }, "Level" : { "type" : "keyword" }, "RequestId" : { "type" : "text" }, "Thread" : { "type" : "text" }, "beat" : { "properties" : { "hostname" : { "type" : "keyword" } } }, "kafka" : { "properties" : { "consumer_group" : { "type" : "keyword" }, "offset" : { "type" : "long" }, "partition" : { "type" : "long" }, "topic" : { "type" : "keyword" } } }, "msg" : { "type" : "text" }, "source" : { "type" : "keyword" }, "type" : { "type" : "keyword" } } } } } |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 智能桌面机器人:用.NET IoT库控制舵机并多方法播放表情
· Linux glibc自带哈希表的用例及性能测试
· 深入理解 Mybatis 分库分表执行原理
· 如何打造一个高并发系统?
· .NET Core GC压缩(compact_phase)底层原理浅谈
· 手把手教你在本地部署DeepSeek R1,搭建web-ui ,建议收藏!
· 新年开篇:在本地部署DeepSeek大模型实现联网增强的AI应用
· Janus Pro:DeepSeek 开源革新,多模态 AI 的未来
· 互联网不景气了那就玩玩嵌入式吧,用纯.NET开发并制作一个智能桌面机器人(三):用.NET IoT库
· 【非技术】说说2024年我都干了些啥
2017-06-13 telegraf input的配置
2017-06-13 grafana 邮件报警