Protocol
Synopsis
Converts IANA protocol numbers to their corresponding protocol names.
Schema
- protocol:
field: <ident>
target_field: <ident>
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 the protocol number to convert |
target_field | N | value of field | Destination field to store the protocol name |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if conversion fails |
ignore_missing | N | false | Skip if source field doesn't exist |
on_failure | N | - | Error handling processors |
on_success | N | - | Success handling processors |
tag | N | - | Identifier |
Details
Maps numeric protocol identifiers to their corresponding protocol names according to the IANA Protocol Numbers registry. The processor converts numeric protocol values (such as those found in IP packet headers) to human-readable protocol names, making log data more interpretable.
The processor maps protocol numbers according to the IANA Protocol Numbers registry, which is the official reference for IP protocol numbers. For unregistered or unknown protocol numbers, the processor returns "UNKNOWN(n)" where n is the protocol number.
The processor supports various input formats (integer, float, string) and provides detailed protocol names for 140+ standardized protocols, including common ones like TCP, UDP, ICMP, and many others.
The processor expects numeric values or strings that can be converted to integers. Invalid input formats will cause failure unless ignore_failure
is set to true
.
Examples
Basic
Converting a protocol number to its name... |
|
adds a human-readable protocol name: |
|
In-Place
Replacing the numeric value with its name... |
|
converts the value in place: |
|
Field Formats
Processing protocol numbers in various formats... |
|
handles different input formats: |
|
Firewall Logs
Enriching firewall logs with protocol information... |
|
creates a more readable security log: |
|
Unknowns
Processing an unregistered protocol number... |
|
provides informative output for unregistered protocols: |
|