vectordotdev / vrl

Vector Remap Language
Mozilla Public License 2.0
123 stars 56 forks source link

Add `parse_iana_protocol_number` and `parse_iana_protocol` function to VRL functions. #893

Open AlexYangYu opened 4 months ago

AlexYangYu commented 4 months ago

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:

Attempted Solutions

Currently, I only have two choice:

Proposal

add function in vrl for parsing the protocol num and protocol

References

No response

Version

No response

coredump17 commented 4 months ago

You can also use CSV enrichment :)