Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
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:
handle number and protocol mapping at app later;
wirte long sentence of if and else in remap transform, because I can not found vrl support map struct.
Proposal
add function in vrl for parsing the protocol num and protocol
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