zoukankan      html  css  js  c++  java
  • 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
      }
    }
  • 相关阅读:
    观光公交
    luogu 4779 【模板】
    最小生成树(luogu 3366)
    计算系数
    更新区间,求单点—— luogu 3368
    HDU
    HDU
    HDU
    HDU
    BFS
  • 原文地址:https://www.cnblogs.com/wll-cs/p/6639875.html
Copyright © 2011-2022 走看看