logstash的index值可以为中文
Posted C碧水蓝天S
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了logstash的index值可以为中文相关的知识,希望对你有一定的参考价值。
logstash中的 output中 有index属性,表示在elk中的主键标识。
在实际应用中,index的值不能为大写字母,可以是小写字母、数字、下划线、中文。
这里重点强调index为中文时,注意linux的编码必须为utf-8,以下为例子:
input { } filter { } output { elasticsearch { action => "index" hosts => "10.19.105.189:9200" user => "elastic" password => "changeme" //支持中文,但是要确保Xshell的字符集类型为utf-8类型 index => "测试" } stdout{ codec => rubydebug } }
以上是关于logstash的index值可以为中文的主要内容,如果未能解决你的问题,请参考以下文章
c_cpp UV Index Indicator订阅PubNub并使用颜色显示UV索引值。博文的代码片段。在这里查看项目:https:/
多台NGINX服务器 ELK部署Filebeat的fields字段+Logstash的if 字段 采集多个日志文件写入elasticsearch 7.6.2 变更为不同索引名 自定义索引 index