Recover
Synopsis
Terminates the pipeline successfully, ignoring any previous errors.
Schema
- recover:
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if operation fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Rescues the pipeline from the conditions specified in on_failure
, effectively ignoring any errors that occurred in previous processors. This is used for scenarios where you want to prevent failures from propagating.
The processor acts as a boundary, catching any previous failures and treating them as successful completions. This allows pipelines to continue processing subsequent log entries without being halted by errors in earlier processors.
The recover processor doesn't modify any data or fields. It serves purely as an error recovery mechanism to prevent pipeline termination due to previous failures.
This processor is most commonly used in error handling chains, at the end of optional processing sequences, or when you want to ensure that certain errors don't prevent the pipeline from completing.
Using recover will suppress all previous errors in the pipeline execution. Make sure this is the intended behavior before using this processor, as it can mask legitimate issues that should be addressed.
Examples
Basic Error Recovery
Recovering from pipeline errors... |
|
prevents pipeline failure: |
|
Conditional Recovery
Recovering only under specific conditions... |
|
recovers based on condition: |
|
Optional Processing Chain
Making an entire processing chain optional... |
|
continues regardless of experimental processor outcome: |
|
Multiple Error Handlers
Using recover after multiple fallback attempts... |
|
recovers after all parsing attempts fail: |
|
External Service Fallback
Recovering from external service failures... |
|
continues when external API is unavailable: |
|