Skip to content

Add bitwise operators for integers #1386

Open
@vruello

Description

@vruello

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureA value-adding code addition that introduce new functionality.vrl: compilerChanges to the compilervrl: stdlibChanges to the standard library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions