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

[ygrok] -m for multiline patterns #118

Open
preaction opened this issue Jan 30, 2015 · 0 comments
Open

[ygrok] -m for multiline patterns #118

preaction opened this issue Jan 30, 2015 · 0 comments
Labels

Comments

@preaction
Copy link
Owner

This will allow parsing, for example, iostat output, but it could cause a massive memory usage (if we fail to match, we will collect lines until we do match and can finally get rid of them, but if we continue to fail to match, we'll never flush our buffer).

We can (probably?) detect how many lines the pattern matches and only keep that many in the buffer. Alternatively, we can allow a "--buffer" size option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant