代码之家  ›  专栏  ›  技术社区  ›  ethrbunny

为给定过滤器的logstash输出添加公共前缀

  •  0
  • ethrbunny  · 技术社区  · 7 年前

    太多了

    如果解析的记录是'a0'和'a1',我希望它们在elasticsearch中显示为'somespace.a0'和'somespace.a1'。

    1 回复  |  直到 7 年前
        1
  •  0
  •   ethrbunny    7 年前

    如果你用的是 千伏 here ).

    prefix:
    
    Value type is string
    Default value is ""
    A string to prepend to all of the extracted keys.
    
    For example, to prepend arg_ to all keys:
    
    filter { kv { prefix => "arg_" } }