-
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
Add pipeline.continue_on_error setting to allow logstash to rescue arbitrary… #5562
Conversation
782fdf4
to
f1f06e7
Compare
@@ -50,6 +50,16 @@ | |||
# | |||
# pipeline.unsafe_shutdown: false | |||
# | |||
# Defaults to false. Setting this to true will rescue all exceptions in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"rescue" is a ruby-specific term and 'exceptions' feels programmer-centric
Being that this should target users/operators, are there any better ways to describe this? "Unexpected errors" or something like that?
Code LGTM, I think @jordansissel's comment concerning the doc is valid and should be addressed before we merge this. |
f1f06e7
to
61c6b6d
Compare
@ph @jordansissel I have pushed a new version that should address your critiques. |
build failed?
|
61c6b6d
to
79f55b5
Compare
|
||
if @logger.info? | ||
logger_opts[:events] = Array(event_or_events).map(&:to_hash) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe if debug? == true add stacktraces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any concerns here about sensitives data that could be leak here?
79f55b5
to
9873201
Compare
…bitrary pipeline errrors. Fixes elastic#5547 and elastic#1637
9873201
to
5f7a4b3
Compare
end | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was easy (tm)
LGTM |
Can we mark this as being experimental in the config docs? |
Will rename this to |
We discussed this internally, and it will be handled in the DLQ feature. Closing this for now. |
This will rescue any plugin or pipeline config lang errors. This setting is only settable in the YAML.
Fixes #5547 and #1637