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_severity function for Syslog log level keywords #5505

Merged
merged 16 commits into from Dec 22, 2020

Conversation

lucperkins
Copy link
Contributor

@lucperkins lucperkins commented Dec 11, 2020

Addresses #5501 with a to_syslog_severity Remap function that converts a Syslog log level keyword into an integer severity level.

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.

@lucperkins lucperkins changed the title enhancement(remap): Add to_severity function enhancement(remap): Add to_severity function for Syslog log level keywords Dec 11, 2020
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.

Maybe we should call this to_syslog_severity? This would be more specific and leave the door open for other severity mappings.

@jszwedko
Copy link
Member

jszwedko commented Dec 14, 2020

https://github.com/timberio/vector/issues/5507 seems related which proposes calling this syslog::to_severity.

@lucperkins lucperkins marked this pull request as draft December 15, 2020 17:09
Luc Perkins added 7 commits December 19, 2020 18:33
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>
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 #5507, which feels like it might be a little ways off, I'd propose calling this to_syslog_severity. We can always deprecate it and change to syslog::to_severity later.

Otherwise, this looks good to me!

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.

A few last notes, otherwise this looks good.

docs/reference/remap/to_syslog_severity.cue Outdated Show resolved Hide resolved
lib/remap-functions/src/to_syslog_severity.rs Outdated Show resolved Hide resolved
lib/remap-functions/src/to_syslog_severity.rs Show resolved Hide resolved
lib/remap-functions/src/to_syslog_severity.rs Outdated Show resolved Hide resolved
Luc Perkins added 3 commits December 21, 2020 10:14
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 2 commits December 21, 2020 10:14
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
@lucperkins lucperkins changed the title enhancement(remap): Add to_severity function for Syslog log level keywords enhancement(remap): Add to_syslog_severity function for Syslog log level keywords Dec 21, 2020
@lucperkins lucperkins marked this pull request as ready for review December 21, 2020 19:30
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.

None yet

2 participants