Debug
Synopsis
Logs debugging information for monitoring and troubleshooting pipelines.
Schema
- debug:
level: <string>
message: <string>
keyword: <string>
tag: <string>
description: <text>
if: <script>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
level | N | "Debug" | Debug level ("Debug" , "Info" , "Warning" , "Error" ) |
message | N | full document | Custom message to log (supports templates) |
keyword | N | - | Keyword for categorizing debug messages (supports templates) |
tag | N | - | Identifier for grouping related debug messages |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if debug logging fails |
on_failure | N | - | Error handling processors |
on_success | N | - | Success handling processors |
Details
Logs debugging information about the current log entry being processed. The processor captures the state of the log entry, adds custom messages and metadata, and stores this information for troubleshooting and diagnostic purposes.
Debug messages are stored in the pipeline configuration and do not modify the log entry itself. They are only visible in debugging tools and logs, not in the processed output.
Captured debug messages can be used to analyze pipeline behavior, verify data transformations, and diagnose issues in processing flows. The processor supports different logging levels and additional context through keywords and tags.
Extensive use of debug processors in production pipelines may impact performance. Consider using conditional debugging with the if
parameter to limit debug message generation to specific scenarios.
Examples
Basic
Adding simple debug message... |
|
logs the entire document with a message |
Templated
Using field values in debug messages... |
|
creates dynamic context-aware logs |
Conditional
Debugging only specific scenarios... |
|
logs only when condition is met |
Multi-Point
Tracking progress at multiple stages creates a trace. |
|