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

loki.process Add stage.pattern to use LogQL pattern parser to extract values #2015

Open
rowanmoul opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rowanmoul
Copy link

rowanmoul commented Oct 31, 2024

Request

It would be great if there was a stage.pattern stage for loki.process. It would function similarly to stage.regex, except use the pattern syntax instead. Given that stage.match already uses LogQL, I imagine the necesary dependencies already exist in the alloy codebase.

Use case

The pattern syntax is much easier to read and understand, reducing the chance of mistakes. The docs also claim it is faster/more efficient than regex.

@rowanmoul rowanmoul added the enhancement New feature or request label Oct 31, 2024
@rowanmoul rowanmoul changed the title Add stage.pattern to loki.process component to use logql pattern parser to extract values loki.process - add stage.pattern to use logql pattern parser to extract values Oct 31, 2024
@rowanmoul rowanmoul changed the title loki.process - add stage.pattern to use logql pattern parser to extract values loki.process Add stage.pattern to use LogQL pattern parser to extract values Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant