-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logstash should exit with non-zero exit code if an exception is thrown by a plugin in register
method
#6712
Comments
We effectively should return the right error code at that moment, I will check with my agent refactor in #6632
|
this is fixed in the upcoming 6:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a plugin throws an exception in the
register
method, an "Pipeline aborted due to error" occurs and Logstash is stopped. Unfortunately, the exit code for Logstash in this case is still 0.Run the following command:
or
In the above example, the
register
method of the logstash-filter-grok fails, because the patternNOT_DEFINED
does not exist, which leads to a compile error of the grok pattern.Current output:
Expected output:
Logstash should return a non-zero exit code.
The text was updated successfully, but these errors were encountered: