logstash icon indicating copy to clipboard operation
logstash copied to clipboard

Log where a configuration error occurs

Open TheVastyDeep opened this issue 2 years ago • 1 comments

The compiler raises an exception when there is a syntax error in the configuration. I realize that a lot of code passes "null" for source_with_metadata, but if SourceWithMetadata.protocol is "file" then SourceWithMetadata.id should be the path. Including that id in the error message would make it much easier to find problems in the configuration when it is available.

TheVastyDeep avatar Jun 12 '22 16:06 TheVastyDeep

agreed. it's a constant problem, especially because the configuration files seem to be so touchy about syntax, white space, etc etc. and in my searches for answers to these problems, i've seen many many others with similar problems that could have been easily fixed if just they knew where in the config file the problem is. dozens of old issues on ES discuss where people are like "getting mystery error" and then someone answering "oh that means you have a problem in your config file" and then poster says "i can't find where" and then a month later "oh i finally found it, needed brackets around the value" or something dumb.
To summarize: this is really something that would help a lot of people use Logstash.

steevhise avatar Sep 01 '22 20:09 steevhise