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

enhancement(remap): Add to_syslog_level function for parsing Syslog levels into strings #5503

Merged
merged 16 commits into from
Dec 21, 2020

Conversation

lucperkins
Copy link
Contributor

@lucperkins lucperkins commented Dec 11, 2020

Addresses #5500 with a Remap function that converts Syslog severity levels into their corresponding keyword.

Note: the heavy lifting has been done here. I'm marking this as a draft until (a) #5522 lands and (b) we figure out a naming system for modules/namespaces.

@jszwedko
Copy link
Member

Same as my comment in #5501 . I propose we at least call this to_syslog_level but vectordotdev/vrl#145 would have it be syslog::to_level.

@lucperkins
Copy link
Contributor Author

@jszwedko Personally, I'm agnostic on this. Happy to go with the flow re: decisions from our fearless TRL leaders.

@lucperkins lucperkins marked this pull request as draft December 15, 2020 17:07
Luc Perkins added 8 commits December 19, 2020 18:02
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Luc Perkins added 4 commits December 19, 2020 18:16
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In absence of https://github.com/timberio/vector/issues/5507, which feels like it might be a little ways off, I'd propose calling this to_syslog_level. We can always deprecate it and change to syslog::to_level later.

Otherwise, this looks good to me!

@lucperkins lucperkins marked this pull request as ready for review December 21, 2020 15:40
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update the function name in a few more places, but otherwise this looks good!

lib/remap-functions/Cargo.toml Outdated Show resolved Hide resolved
lib/remap-functions/src/to_syslog_level.rs Outdated Show resolved Hide resolved
docs/reference/remap/to_syslog_level.cue Outdated Show resolved Hide resolved
docs/reference/remap/to_syslog_level.cue Outdated Show resolved Hide resolved
@lucperkins lucperkins changed the title enhancement(remap): Add to_level function for Syslog levels enhancement(remap): Add to_syslog_level function for parsing Syslog levels into strings Dec 21, 2020
Luc Perkins and others added 4 commits December 21, 2020 09:51
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Fix dependency naming issues

Co-authored-by: Jesse Szwedko <jesse@szwedko.me>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants