Block Comments in Logstash Config file
Asked Answered
P

1

12

I am just getting started with Logstash and wondering whether there is a way to specify block comments in logstash config file? It will be very useful as I am testing with long grok patterns which span multiple lines.

Persinger answered 6/7, 2015 at 15:19 Comment(0)
P
18

Currently there is no block comments available . We have to go for single line comment only by using # at the start of line which you need to comment out.

Also comments can be used anywhere in the line

# this is a comment

input { # comments can appear at the end of a line, too
  # ...
}
Plumbism answered 15/7, 2015 at 5:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.