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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Remap function for parse_syslog_facility #848

Open
timansky opened this issue May 17, 2024 · 3 comments
Open

New Remap function for parse_syslog_facility #848

timansky opened this issue May 17, 2024 · 3 comments
Labels
meta: good first issue Anything that is good for new contributors type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library

Comments

@timansky
Copy link

timansky commented May 17, 2024

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

Similar to request to map syslog severity levels to integer from vectordotdev/vector#5501 it would be helpful to have a means to remap syslog facility keywords to their integer values as well.

Use Cases

When parsing events message, the raw facility values could be enriched with a simple remap transform to down stream processing

Attempted Solutions

No response

Proposal

create a remap-function to_syslog_facility which could produce the facility name:

parse_syslog_facility("authpriv")
=> 10

References

No response

Version

No response

@timansky timansky added the type: feature A value-adding code addition that introduce new functionality. label May 17, 2024
@jszwedko jszwedko transferred this issue from vectordotdev/vector May 20, 2024
@jszwedko jszwedko added the vrl: stdlib Changes to the standard library label May 20, 2024
@jszwedko
Copy link
Member

Makes sense to me, thanks for the request @timansky . We'd be happy to see a PR for this if you or someone else feels motivated.

@jszwedko jszwedko added the meta: good first issue Anything that is good for new contributors label May 20, 2024
@timansky
Copy link
Author

I'll try, looks simple

@jszwedko
Copy link
Member

I'll try, looks simple

馃コ You can see the PR you linked to, vectordotdev/vector#5501, as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: good first issue Anything that is good for new contributors 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

2 participants