【问题标题】:Block Comments in Logstash Config fileLogstash 配置文件中的块注释
【发布时间】:2015-09-23 19:41:47
【问题描述】:

我刚刚开始使用 Logstash,想知道是否有办法在 Logstash 配置文件中指定块 cmets? 这将非常有用,因为我正在使用跨越多行的长 grok 模式进行测试。

【问题讨论】:

    标签: logstash logstash-configuration block-comments


    【解决方案1】:

    目前没有可用的块 cmets。我们只能通过在需要注释掉的行的开头使用 # 来进行单行注释。

    cmets 也可以在行中的任何地方使用

    # this is a comment
    
    input { # comments can appear at the end of a line, too
      # ...
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-06
      • 2014-10-16
      • 1970-01-01
      • 2020-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多