-
Notifications
You must be signed in to change notification settings - Fork 116
Add bitwise operators for integers #1386
Copy link
Copy link
Open
Labels
type: featureA value-adding code addition that introduce new functionality.A value-adding code addition that introduce new functionality.vrl: compilerChanges to the compilerChanges to the compilervrl: stdlibChanges to the standard libraryChanges to the standard library
Description
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
Logs often contain flags, which are integers where each bit has a special meaning. When processing a flag, it is useful to be able to know whether the n-th bit is set or not. The standard way to do this is to use a bitwise and operator.
Attempted Solutions
I couldn't find any bitwise operators in the vrl language.
Proposal
I suggest adding bitwise and, or and not operators for integers in the vrl language.
References
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: featureA value-adding code addition that introduce new functionality.A value-adding code addition that introduce new functionality.vrl: compilerChanges to the compilerChanges to the compilervrl: stdlibChanges to the standard libraryChanges to the standard library