Commit
Synopsis
Finalizes staged routes created by the reroute processor with staging: true, moving events from the staging area to their designated destinations.
Schema
- commit:
destination: <string>
target: <string>
description: <text>
if: <script>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
destination | N | - | Specific destination to commit. If omitted, commits all staged routes. Supports templates. A template that comes out empty commits nothing |
target | N | - | Alias for destination, read only when destination is unset. Setting both is not an error — destination simply wins |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
disabled | N | false | When true, the processor is skipped and the event continues to the next one. Lets you take a processor out of the path without removing its configuration |
Details
The commit processor works with the reroute processor to enable multi-tier pipeline architectures. When reroute uses staging: true, events are held in a staging area instead of being delivered immediately. The commit processor finalizes those staged routes.
Staged Route Behavior:
- Staged routes are stored in a map keyed by destination name
- Multiple staged routes to the same destination overwrite previous versions
- Only the final staged version for each destination is committed
- At pipeline end, all staged routes are automatically committed to their destinations
Commit Modes:
- Commit all: When
destinationis omitted, all staged routes are committed - Commit specific: When
destinationis specified, only that destination is committed - Commit nothing: When
destinationis a template that comes out empty, nothing is committed. The staged routes stay staged. Only acommitwithout adestinationcommits every staged route
Use the discard processor to cancel staged routes without delivering them.
Error Handling:
- Returns error if specified
destinationis not found in staged routes - Use
ignore_failure: trueto continue processing when destination not found - Empty staging area with no destination specified succeeds silently
This pattern enables progressive normalization where data passes through multiple transformation stages, with only the final, most-normalized version delivered to each destination. See Multi-Tier Pipelines for detailed patterns.
Examples
Commit All Staged Routes
Committing all staged routes after multi-tier processing... | |
Both archive and sentinel receive their respective formats... |
Commit Specific Destination
Committing only a specific destination... | |
Sentinel receives data immediately, lake receives enriched data later... |
Staged Route Override
Progressive normalization with automatic override... | |
Only the final ASIM version reaches sentinel... |
Conditional Commit
Committing based on validation results... | |
Valid events go to sentinel, invalid to quarantine... |
Error Handling
Handling missing destination gracefully... | |
Processing continues with error captured... | |