在Logstash配置文件中使用块注释

12

我刚开始使用Logstash,想知道是否有一种方法可以在Logstash配置文件中指定块注释? 这将非常有用,因为我正在测试跨多行的长Grok模式。

1个回答

17

目前没有块注释可用。我们只能使用在行首使用 # 注释掉需要注释的单行。

同时,注释可以在行中的任何位置使用。

# this is a comment

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接