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

Add property to limit backtracking #184

Open
Grozk opened this issue Nov 19, 2022 · 0 comments
Open

Add property to limit backtracking #184

Grozk opened this issue Nov 19, 2022 · 0 comments

Comments

@Grozk
Copy link

Grozk commented Nov 19, 2022

Hi,

We are running around 150 pipelines on the same logstash and troubleshooting is becoming difficult especially because most of the pipelines are using grok and some of them are probably bad and raise the CPU to 100% full time.

I’m wondering if there is a chance to implement a property for setting a limit to backtracking, it would be great for avoiding one pipeline to take 100% CPU during whatever timeout_millis we set.

this article explains it :
https://api7.ai/blog/how-to-avoid-catastrophic-backtracking-completely

It’s not the key to resolve bad regex but it could minimize the effect.

I’m open to discuss it, as I read a lot of things these last few weeks and I might be wrong.

thanks for reading me.
Enjoy your day

@Grozk Grozk changed the title Add property for l’imitions backtracking Add property for limiting backtracking Nov 19, 2022
@Grozk Grozk changed the title Add property for limiting backtracking Add property to limit backtracking Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant