Error Code
Synopsis
Decodes Windows system error codes into human-readable descriptions.
Schema
- error_code:
field: <ident>
target_field: <string>
code_type: <string>
add_components: <boolean>
add_hex: <boolean>
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 |
---|---|---|---|
field | Y | - | Source field containing error code to decode |
target_field | N | {field}_decoded | Target field to store decoded error information |
code_type | N | auto | Error code type (auto, hresult, ntstatus, win32, dos) |
add_components | N | false | Include detailed component breakdown |
add_hex | N | false | Include hexadecimal representation |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if decoding 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
Decodes Windows system error codes including HRESULT, NTSTATUS, Win32, and DOS error codes into structured information with human-readable descriptions. The processor supports both numeric and hexadecimal input formats.
The processor maintains comprehensive databases of error codes for different Windows subsystems. When code_type
is set to "auto", it automatically detects the error type based on the numeric value range and bit patterns.
Error code detection uses specific patterns: Win32 errors are typically small positive values, NTSTATUS codes have 0xCxxxxxxx or 0x4xxxxxxx patterns, and HRESULT codes use the 0x8xxxxxxx pattern for failures.
When add_components
is enabled, the processor extracts detailed information from structured error codes like HRESULT (severity, facility, error code) and NTSTATUS (severity, customer flag, facility).
Error code databases are comprehensive but not exhaustive. Unknown error codes will be returned with generic descriptions. Some older or specialized error codes may not have detailed descriptions available.
Examples
Basic HRESULT Decoding
Decoding Windows HRESULT error code... |
|
provides detailed error information: |
|
NTSTATUS with Components
Extracting NTSTATUS components and description... |
|
breaks down NTSTATUS structure: |
|
Win32 Error Array Processing
Processing multiple Win32 error codes... |
|
decodes each error in the array: |
|
Auto-Detection Mode
Using automatic error type detection... |
|
automatically detects HRESULT type: |
|
HRESULT Component Analysis
Analyzing HRESULT structure components... |
|
provides complete HRESULT breakdown: |
|
Legacy DOS Error Handling
Processing legacy DOS error codes... |
|
translates DOS error: |
|