Add parse_iana_protocol_number
and parse_iana_protocol
function to VRL functions.
#893
Labels
type: feature
A value-adding code addition that introduce new functionality.
vrl: stdlib
Changes to the standard library
A note for the community
Use Cases
In scenarios that parsing network device logs, it is necessary to translate the protocol number in the logs into protocol, a conversion that should be done in accordance with the IANA Protocol Number standards.
For example:
1
- >ICMP
6
->TCP
Attempted Solutions
Currently, I only have two choice:
if
andelse
in remap transform, because I can not found vrl support map struct.Proposal
add function in vrl for parsing the protocol num and protocol
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: