Add pipeline.continue_on_error setting to allow logstash to rescue arbitrary…#5562
Add pipeline.continue_on_error setting to allow logstash to rescue arbitrary…#5562andrewvc wants to merge 1 commit intoelastic:masterfrom
Conversation
782fdf4 to
f1f06e7
Compare
| # | ||
| # pipeline.unsafe_shutdown: false | ||
| # | ||
| # Defaults to false. Setting this to true will rescue all exceptions in the |
There was a problem hiding this comment.
"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.
Maybe if debug? == true add stacktraces?
There was a problem hiding this comment.
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 |
|
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