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

It needs to be able to do a multiline regex match or force a match of all the patterns #79

Open
manoflinux opened this issue Nov 4, 2023 · 0 comments

Comments

@manoflinux
Copy link

manoflinux commented Nov 4, 2023

It needs to be able to do a multiline regex match or force a match of all the patterns.
Because that way it would have much more precise matching, I tried making two patterns and requiring two matches, which does work, but will also react if instead of having both patterns it has one of them twice.
If I could do a multiline regex match or require all regex patterns of the same level(ie two critical patterns or two warning patterns) to be included to react.
Example if I had two or more critical patterns, lets say aaa and bbb, and you added an additional parameter I assume to tell it to match all then when I had aaa twice in the log output instead of aaa and bbb it would not react, but if it had aaa and bbb, then check_logfiles would react.

@manoflinux manoflinux changed the title It needs to be able to do a multiline regex match or force a match of of the patterns It needs to be able to do a multiline regex match or force a match of all the patterns Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant