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

New syslog_priority_to_level_keyword & syslog_priority_to_level_name Remap functions #4415

Closed
binarylogic opened this issue Oct 6, 2020 · 1 comment
Assignees
Labels
domain: vrl Anything related to the Vector Remap Language transform: remap Anything `remap` transform related type: feature A value-adding code addition that introduce new functionality.

Comments

@binarylogic
Copy link
Contributor

binarylogic commented Oct 6, 2020

See #4414

Examples

Given this event:

{
  "priority": 3
}

And this Remap source:

.level_keyword = syslog_priority_to_level_keyword(.priority)
.level_name = syslog_priority_to_level_name_(.priority)

The result would be:

{
  "priority": 3,
  "level_keyword": "err",
  "level_name": "error"
}
@binarylogic binarylogic added type: feature A value-adding code addition that introduce new functionality. transform: remap Anything `remap` transform related labels Oct 6, 2020
@binarylogic binarylogic changed the title New syslog_priority_to_level_keyword Remap function New syslog_priority_to_level_keyword & syslog_priority_to_level_name Remap functions Oct 6, 2020
@binarylogic binarylogic added the domain: vrl Anything related to the Vector Remap Language label Oct 12, 2020
@binarylogic binarylogic added this to the 2021-01-04 Xenomass Well milestone Jan 9, 2021
@binarylogic
Copy link
Contributor Author

Closed via #5503 and #5505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: vrl Anything related to the Vector Remap Language transform: remap Anything `remap` transform related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants