Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parse_iana_protocol_number and parse_iana_protocol function to VRL functions. #893

Open
AlexYangYu opened this issue Apr 6, 2024 · 1 comment
Labels
type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library

Comments

@AlexYangYu
Copy link

A note for the community

  • 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

References

No response

Version

No response

@AlexYangYu AlexYangYu added the type: feature A value-adding code addition that introduce new functionality. label Apr 6, 2024
@coredump17
Copy link

You can also use CSV enrichment :)

@jszwedko jszwedko transferred this issue from vectordotdev/vector Jun 13, 2024
@jszwedko jszwedko added the vrl: stdlib Changes to the standard library label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library
Projects
None yet
Development

No branches or pull requests

3 participants